-
Notifications
You must be signed in to change notification settings - Fork 240
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
Support typed tx #89
Conversation
@@ -17,3 +17,5 @@ test-blockchain/start.sh | |||
contractAddresses.json | |||
|
|||
tenderly.yaml | |||
|
|||
contracts/ChainConstants.sol |
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.
We can probably remove this.
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.
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?
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.
Looks good 👍
Done to avoid changing of existing contracts
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 typedwithdraw
transaction.This PR modifies how receipt bytes are parsed to handle typed receipts.