-
Notifications
You must be signed in to change notification settings - Fork 347
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
Better permanent restriction protection #820
Better permanent restriction protection #820
Conversation
Changes to gas cost
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
/// @param _call The call data. | ||
/// @dev This function reverts if the provided call was not a migration call. | ||
function tryGetNewAdminFromMigration(Call calldata _call) external view returns (address) { | ||
if (_call.target != address(BRIDGE_HUB)) { |
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.
Right now we use ChainAdmin contract as an admin in BridgeHub, SharedBridge, and other contracts. The logic is fine, just need to remember that ChainAdmin can be used only for Chains adminship
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 think we will need to deploy a different chainadmin
contract for those ones
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.
(without the permanent rollup restriction)
c99b936
into
kl/sync-layer-reorg
What ❔
Why ❔
Checklist