Skip to content

Commit

Permalink
Use encodeCall
Browse files Browse the repository at this point in the history
Co-authored-by: Henry <[email protected]>
  • Loading branch information
gvladika and godzillaba authored Aug 9, 2024
1 parent 8827b0f commit b15757b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ contract UpgradeTokenBridgeCreatorScript is DeploymentHelpersScript {

/// prepare upgrade calldata (not a proper gnosis safe format, used just for a reference)
if (creatorOwnerIsMultisig) {
bytes memory creatorCalldata = abi.encodeWithSelector(
ProxyAdmin.upgrade.selector, tokenBridgeCreatorProxy, newL1AtomicTokenBridgeCreatorLogic
bytes memory creatorCalldata = abi.encodeCall(
ProxyAdmin.upgrade, (tokenBridgeCreatorProxy, newL1AtomicTokenBridgeCreatorLogic)
);
bytes memory retryableSenderCalldata = abi.encodeWithSelector(
ProxyAdmin.upgrade.selector, retryableSenderProxy, newL1TokenBridgeRetryableSenderLogic
bytes memory retryableSenderCalldata = abi.encodeCall(
ProxyAdmin.upgrade, (retryableSenderProxy, newL1TokenBridgeRetryableSenderLogic)
);

string memory rootObj = "root";
Expand Down

0 comments on commit b15757b

Please sign in to comment.