-
Notifications
You must be signed in to change notification settings - Fork 7
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
Smr 1813 withdraw erc20s #16
Conversation
…idge-contracts into smr-1813-withdraw-erc20s
…idge-contracts into smr-1813-withdraw-erc20s
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 to me!
// 0000000000000000000000007fa9385be102ac3eac297483dd6233d62b3e1496 | ||
// 000000000000000000000000000000000000000000000000000000174876e7ff | ||
|
||
// bytes memory payload = abi.encode(MAP_TOKEN_SIG, address(token), token.name(), token.symbol(), token.decimals()); |
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.
Commented out code?
} | ||
|
||
// A mapped token should never have root token unset | ||
if (rootToken == address(0)) { |
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.
This should never happen, right?
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.
That's correct, it's copied from here as an extra safety check: https://github.com/immutable/poly-core-contracts/blob/main/contracts/child/ChildERC20Predicate.sol#L171-L172
L2 side of Withdraw ERC20 tokens