-
Notifications
You must be signed in to change notification settings - Fork 11
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
Upgradable L1TokenBridge and L2TokenBridge #7
Conversation
telome seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
@@ -44,6 +47,7 @@ contract L2TokenBridgeSpell { | |||
l2Bridge = L2TokenBridgeLike(l2Bridge_); | |||
} | |||
|
|||
function upgradeToAndCall(address newImp, bytes memory data) external { l2Bridge.upgradeToAndCall(newImp, data); } |
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.
Note that I chose to ignore that this function is normally payable
to keep things simpler, as it doesn't seem useful to be able to pass value to the initialization function (and the L2GovernanceRelay
doesn't explicitly supports receiving ether, though there is still the selfdestruct
workaround).
deploy/TokenBridgeInit.sol
Outdated
@@ -108,5 +114,6 @@ library TokenBridgeInit { | |||
dss.chainlog.setAddress(cfg.govRelayCLKey, address(l1GovRelay)); | |||
dss.chainlog.setAddress(cfg.escrowCLKey, address(escrow)); | |||
dss.chainlog.setAddress(cfg.l1BridgeCLKey, address(l1Bridge)); | |||
dss.chainlog.setAddress(cfg.l1BridgeImpCLKey, l1BridgeInstance.bridgeImp); |
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.
dss.chainlog.setAddress(cfg.l1BridgeImpCLKey, l1BridgeInstance.bridgeImp); | |
dss.chainlog.setAddress(cfg.l1BridgeImpCLKey, l1BridgeInstance.bridgeImp); |
Or otherwise align the entire column.
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.
minor styling change suggested, but otherwise LGTM
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
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
No description provided.