Skip to content

Commit

Permalink
Update file path and some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Oct 7, 2024
1 parent 1378b88 commit 92687b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"), "")
Expand Down
4 changes: 2 additions & 2 deletions scripts/foundry/stylus/setCacheManager/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit 92687b8

Please sign in to comment.