Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Jul 19, 2024
1 parent 4984821 commit 2c64ef1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion contracts/child-chain/stylus/AddWasmCacheManagerAction.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.16;

import "@arbitrum/nitro-contracts-2.0.0/src/precompiles/ArbSys.sol";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ contract NitroContracts2Point0Point0UpgradeAction {
address public immutable newRollupAdminLogic;
address public immutable newRollupUserLogic;

bytes32 private constant _IMPLEMENTATION_PRIMARY_SLOT =
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
bytes32 internal constant _IMPLEMENTATION_SECONDARY_SLOT =
0x2b1dbce74324248c222f0ec2d5ed7bd323cfc425b336f0253c5ccfda7265546d;

constructor(
bytes32 _newWasmModuleRoot,
address _newChallengeManagerImpl,
Expand Down Expand Up @@ -125,12 +120,10 @@ contract NitroContracts2Point0Point0UpgradeAction {

function _upgradeRollup(address rollupProxy) internal {
IRollupUpgrade rollup = IRollupUpgrade(rollupProxy);
address _newAdminLogic = newRollupAdminLogic;
address _newUserLogic = newRollupUserLogic;

// set new logic contracts
rollup.upgradeTo(_newAdminLogic);
rollup.upgradeSecondaryTo(_newUserLogic);
rollup.upgradeTo(newRollupAdminLogic);
rollup.upgradeSecondaryTo(newRollupUserLogic);

// verify
require(
Expand Down
4 changes: 0 additions & 4 deletions scripts/foundry/contract-upgrades/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,3 @@ If you have a multisig as executor, you can still run the above command without
```bash
cast call --rpc-url $PARENT_CHAIN_RPC $ROLLUP "wasmModuleRoot()"
```



forge script --private-key XXX --rpc-url $PARENT_CHAIN_RPC --slow --broadcast ./DeployNitroContracts2Point0Point0UpgradeAction.s.sol:DeployNitroContracts2Point0Point0UpgradeActionScript -vvv

0 comments on commit 2c64ef1

Please sign in to comment.