Skip to content
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

Closed
wants to merge 12 commits into from
Closed

Tipping tx type #204

wants to merge 12 commits into from

Conversation

magicxyyz
Copy link
Contributor

@magicxyyz magicxyyz commented Feb 27, 2023

subtype := uint64(tx.TxSubtype())
enc.Subtype = (*hexutil.Uint64)(&subtype)
switch subtype {
case ArbitrumTippingTxSubtype:
Copy link
Contributor Author

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.

@magicxyyz magicxyyz marked this pull request as ready for review March 14, 2023 15:25
@magicxyyz
Copy link
Contributor Author

replaced by: #260

@magicxyyz magicxyyz closed this Oct 2, 2023
@magicxyyz magicxyyz deleted the tipping-tx-type branch October 2, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant