Skip to content

Commit 3968ad1

Browse files
committed
Almost ready
1 parent 73f1f9f commit 3968ad1

File tree

1 file changed

+22
-30
lines changed

1 file changed

+22
-30
lines changed

Diff for: pages/stack/interop/tutorials/upgrade-to-superchain-erc20/proxy-upgrade.mdx

+22-30
Original file line numberDiff line numberDiff line change
@@ -92,42 +92,32 @@ Some steps depend on whether you want to deploy on [supersim](/stack/interop/too
9292

9393
### Specify environment variables
9494

95-
1. Specify these variables, which we use later:
95+
Specify these variables, which we use later:
9696

97-
<Tabs items={['Supersim', 'Devnets']}>
98-
<Tabs.Tab>
99-
Set these parameters for Supersim.
97+
<Tabs items={['Supersim', 'Devnets']}>
98+
<Tabs.Tab>
99+
Set these parameters for Supersim.
100100

101-
```sh
102-
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
103-
USER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
104-
URL_CHAIN_A=http://127.0.0.1:9545
105-
URL_CHAIN_B=http://127.0.0.1:9546
106-
```
107-
</Tabs.Tab>
108-
109-
<Tabs.Tab>
110-
For Devnet, specify in `PRIVATE_KEY` the private key you used for the setup script and then these parameters.
111-
112-
```sh
113-
USER_ADDRESS=`cast wallet address --private-key $PRIVATE_KEY`
114-
URL_CHAIN_A=https://interop-alpha-0.optimism.io
115-
URL_CHAIN_B=https://interop-alpha-1.optimism.io
116-
```
117-
</Tabs.Tab>
118-
</Tabs>
101+
```sh
102+
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
103+
USER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
104+
URL_CHAIN_A=http://127.0.0.1:9545
105+
URL_CHAIN_B=http://127.0.0.1:9546
106+
INTEROP_BRIDGE=0x4200000000000000000000000000000000000028
107+
```
108+
</Tabs.Tab>
119109

120-
2. Regardless of whether you use Supersim or Devnet, specify these variables.
110+
<Tabs.Tab>
111+
For Devnet, specify in `PRIVATE_KEY` the private key you used for the setup script and then these parameters.
121112

122113
```sh
114+
USER_ADDRESS=`cast wallet address --private-key $PRIVATE_KEY`
115+
URL_CHAIN_A=https://interop-alpha-0.optimism.io
116+
URL_CHAIN_B=https://interop-alpha-1.optimism.io
123117
INTEROP_BRIDGE=0x4200000000000000000000000000000000000028
124-
export ERC20_CHAINID=`cast chain-id --rpc-url $URL_CHAIN_A`
125-
ORIGINAL_TOKEN_NAME=`cast call $ERC20_ADDRESS "name()" --rpc-url $URL_CHAIN_A | cast to-ascii`
126-
export NEW_TOKEN_NAME="$ORIGINAL_TOKEN_NAME Lockbox"
127-
ORIGINAL_TOKEN_SYMBOL=`cast call $ERC20_ADDRESS "symbol()" --rpc-url $URL_CHAIN_A | cast to-ascii`
128-
export NEW_TOKEN_SYMBOL="$ORIGINAL_TOKEN_SYMBOL-L"
129-
export TOKEN_DECIMALS=`cast call $ERC20_ADDRESS "decimals()" --rpc-url $URL_CHAIN_A | cast to-dec`
130118
```
119+
</Tabs.Tab>
120+
</Tabs>
131121

132122
### Create a Foundry project
133123

@@ -172,7 +162,7 @@ Some steps depend on whether you want to deploy on [supersim](/stack/interop/too
172162
<details>
173163
<summary>What to do when the values are not the same</summary>
174164

175-
This can happen when the nonce values of `0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266` on chain A and chain B are different.
165+
This can happen when the nonce values of `0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266` (or your address in the case of using devnet) on chain A and chain B are different.
176166

177167
You can see the nonce values using these commands:
178168

@@ -189,6 +179,8 @@ Some steps depend on whether you want to deploy on [supersim](/stack/interop/too
189179
```
190180

191181
If you do this, remember to update `$ERC20_ADDRESS` and `$BEACON_ADDRESS`.
182+
183+
If the nonce on chain B is already higher than the nonce was on chain A when the original proxy contract was deployed this method is not available and you have to either create a special bridge or [use a lockbox](./lockbox).
192184
</details>
193185

194186
### Deploy ERC-7802 contracts

0 commit comments

Comments
 (0)