Skip to content

Commit

Permalink
feat: add back require to check preocmputed address
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed May 6, 2024
1 parent bf8632b commit 415acc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/DeployAgTokenSideChainMultiBridge.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract DeployAgTokenSideChainMultiBridge is Script, CommonUtils {
address computedAddress = create2Factory.findCreate2Address(salt, initCode);
console.log("AgTokenSideChainMultiBridge Proxy Supposed to deploy: %s", computedAddress);

// require(computedAddress == expectedAddress, "Computed address does not match expected address");
require(computedAddress == expectedAddress, "Computed address does not match expected address");

AgTokenSideChainMultiBridge agToken = AgTokenSideChainMultiBridge(create2Factory.safeCreate2(salt, initCode));
TransparentUpgradeableProxy(payable(address(agToken))).upgradeTo(address(agTokenImpl));
Expand Down

0 comments on commit 415acc1

Please sign in to comment.