diff --git a/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol b/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol index e5d5c89..2f46a59 100644 --- a/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol +++ b/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol @@ -11,7 +11,7 @@ interface ICacheManager { /** * @title DeployAddWasmCacheManagerActionScript - * @notice This script deploys action that's used to add pre-deployed wasm cache manager on a child chain. + * @notice This script deploys CacheManager and then deploys action that's used to add cache manager on a child chain. */ contract DeployAddWasmCacheManagerActionScript is DeploymentHelpersScript { // https://github.com/OffchainLabs/nitro/releases/tag/consensus-v32 @@ -22,7 +22,7 @@ contract DeployAddWasmCacheManagerActionScript is DeploymentHelpersScript { // deploy CacheManger behind proxy address cacheManagerLogic = deployBytecodeFromJSON( - "/node_modules/@arbitrum/nitro-contracts-2.0.0/build/contracts/src/chain/CacheManager.sol/CacheManager.json" + "/node_modules/@arbitrum/nitro-contracts-2.1.0/build/contracts/src/chain/CacheManager.sol/CacheManager.json" ); address cacheManagerProxy = address( new TransparentUpgradeableProxy(cacheManagerLogic, vm.envAddress("CACHE_MANAGER_PROXY_ADMIN_ADDRESS"), "") diff --git a/scripts/foundry/stylus/setCacheManager/README.md b/scripts/foundry/stylus/setCacheManager/README.md index ade20c8..5105194 100644 --- a/scripts/foundry/stylus/setCacheManager/README.md +++ b/scripts/foundry/stylus/setCacheManager/README.md @@ -1,6 +1,6 @@ # Adding the wasm CacheManager -This script empowers `AddWasmCacheManagerAction` contract which enables CacheManager for the Orbit chain. Please note that the prerequisite for this action is running the ArbOS 32 version which introduces Stylus support. +This script empowers `AddWasmCacheManagerAction` contract which deploys and enables CacheManager for the Orbit chain. Please note that the prerequisite for this action is running the ArbOS 32 version which introduces Stylus support. ## How to use it @@ -9,7 +9,7 @@ This script empowers `AddWasmCacheManagerAction` contract which enables CacheMan > [!CAUTION] > The .env file must be in project root. -`DeployAddWasmCacheManagerAction.s.sol` script deploys `AddWasmCacheManagerAction` contract. It can be executed in this directory like this: +`DeployAddWasmCacheManagerAction.s.sol` script deploys `CacheManager` behind the proxy and action `AddWasmCacheManagerAction` contract. It can be executed in this directory like this: ```bash forge script --sender $DEPLOYER --rpc-url $CHILD_CHAIN_RPC --broadcast --slow ./DeployAddWasmCacheManagerAction.s.sol -vvv --verify --broadcast