-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tipping tx type #204
Tipping tx type #204
Conversation
subtype := uint64(tx.TxSubtype()) | ||
enc.Subtype = (*hexutil.Uint64)(&subtype) | ||
switch subtype { | ||
case ArbitrumTippingTxSubtype: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatively we could call here a method of ArbitrumSubtypedTx
(something like tx.(*ArbitrumSubtypedTx).EncodeJSON(&enc)
) and have the specific tx subtypes implement the encoding. The similar thing could be done for RLP encoding.
This could be nice to have almost everything that's needed to implement new tx subtype in one place, but also it would take it out of context, so initially I followed geths file split.
replaced by: #260 |
see: OffchainLabs/nitro#1510