-
Notifications
You must be signed in to change notification settings - Fork 4
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
e2e test for withdrawals L2-initiate -> forking -> L1-finalize #143
Conversation
@@ -185,7 +185,7 @@ contract ForkableBridge is | |||
uint256 amount, | |||
bool useFirstChild, | |||
bool useChildTokenAllowance | |||
) public onlyForkManger onlyAfterForking { | |||
) public onlyAfterForking { |
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.
Since all tokens are no longer accessible in the old bridge contract and they need to be withdrawn in the new contract, I think its fine if everyone can push them to the new chain. But I will rework this in one of my next PRs anyway
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.
Approved apart from my minor quibble with the wording of that comment
contracts/ForkableBridge.sol
Outdated
@@ -175,7 +175,7 @@ contract ForkableBridge is | |||
} | |||
|
|||
/** | |||
* @dev Allows the forkmanager to take out the forkonomic tokens | |||
* @dev Allows to take out the forkonomic tokens |
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.
Comment: Allows -> Allows anyone
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.
Come to think of it I would write this as
Allows anyone to take out their forkonomic tokens
/**
*/