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

Support typed tx #89

Merged
merged 12 commits into from
Sep 17, 2021
Merged

Support typed tx #89

merged 12 commits into from
Sep 17, 2021

Conversation

imyourm8
Copy link

@imyourm8 imyourm8 commented Jul 26, 2021

EIP-2718 introduced typed transactions and corresponding typed receipts. If tx is not legacy, it requires to prepend a type byte in front of RLP encoded receipt bytes.

This case is not handled in POS bridge RootChainManager. A user will not able to exit with a typed withdraw transaction.

This PR modifies how receipt bytes are parsed to handle typed receipts.

@@ -17,3 +17,5 @@ test-blockchain/start.sh
contractAddresses.json

tenderly.yaml

contracts/ChainConstants.sol
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably remove this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect it is a generated file (it was newly created in the repo) that's why I ignored it to avoid committing. Any reasons to not do it?

Copy link
Contributor

@itzmeanjan itzmeanjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@jdkanani jdkanani merged commit 7237487 into master Sep 17, 2021
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.

None yet

3 participants