Skip to content

Commit 0f72506

Browse files
authored
chore(docs): update testnet docs (#102)
1 parent cc567a8 commit 0f72506

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ See full documentation and advanced examples [here](./docs/contract-interaction.
6363

6464
### 🔗 Supported bridge chains
6565

66-
By default zkSync CLI bridge commands support Era Testnet and Era Mainnet. You can also use other networks by overwriting L1 and L2 RPC URLs. For example: `npx zksync-cli deposit --rpc=http://... --l1-rpc=http://...`
66+
By default zkSync CLI bridge commands support zkSync Sepolia and Goerli Testnet and zkSync Mainnet. You can also use other networks by overwriting L1 and L2 RPC URLs. For example: `npx zksync-cli deposit --rpc=http://... --l1-rpc=http://...`
6767

6868
If you're using [local setup (dockerized testing node)](https://github.com/matter-labs/local-setup) with default L1 and L2 RPC URLs, you can select `Local Dockerized node` option in the CLI or provide option `--chain local-dockerized`.
6969

@@ -72,7 +72,7 @@ If you're using [local setup (dockerized testing node)](https://github.com/matte
7272
### Run in development mode
7373

7474
1. Install all dependencies with `npm i`.
75-
2. To use CLI in development mode run `npm run dev -- [command] [options]` (e.g. `npm run dev -- bridge deposit --chain=zksync-goerli`).
75+
2. To use CLI in development mode run `npm run dev -- [command] [options]` (e.g. `npm run dev -- bridge deposit --chain=zksync-sepolia`).
7676

7777
### Building for production
7878

docs/contract-interaction.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ npx zksync-cli contract read
7272
```
7373
You will be prompted to select a chain, contract address, and method.
7474
```bash
75-
? Chain to use: zkSync Goerli Testnet
76-
? Contract address: 0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b
75+
? Chain to use: zkSync Sepolia Testnet
76+
? Contract address: 0x45E6dC995113fd3d1A3b1964493105B9AA9a9A42
7777
```
7878

7979
Next you need to select a **method (function) to call**.
@@ -115,8 +115,8 @@ Finally, you will be asked the **method output** type to decode the response. Yo
115115
**Tip**: after running command with prompts you will see a full command with all the options that you can copy and use later to quickly run the same command again. For example:
116116
```bash
117117
npx zksync-cli contract read \
118-
--chain "zksync-goerli" \
119-
--contract "0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b" \
118+
--chain "zksync-sepolia" \
119+
--contract "0x45E6dC995113fd3d1A3b1964493105B9AA9a9A42" \
120120
--method "balanceOf(address)" \
121121
--args "0xa1cf087DB965Ab02Fb3CFaCe1f5c63935815f044" \
122122
--output "uint256"
@@ -134,8 +134,8 @@ npx zksync-cli contract write
134134
```
135135
You will be prompted to select a chain, contract address, and method.
136136
```bash
137-
? Chain to use: zkSync Goerli Testnet
138-
? Contract address: 0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b
137+
? Chain to use: zkSync Sepolia Testnet
138+
? Contract address: 0x45E6dC995113fd3d1A3b1964493105B9AA9a9A42
139139
```
140140

141141
Next you need to select a **method (function) to call**.
@@ -174,10 +174,10 @@ When submitted a contract call will be made and you'll see the transaction hash
174174
**Tip**: after running command with prompts you will see a full command with all the options that you can copy and use later to quickly run the same command again. For example:
175175
```bash
176176
npx zksync-cli contract write \
177-
--chain "zksync-goerli" \
178-
--contract "0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b" \
177+
--chain "zksync-sepolia" \
178+
--contract "0x45E6dC995113fd3d1A3b1964493105B9AA9a9A42" \
179179
--method "transfer(address to, uint256 amount)" \
180-
--args "0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b" "1"
180+
--args "0x45E6dC995113fd3d1A3b1964493105B9AA9a9A42" "1"
181181
```
182182

183183
<br />

src/data/chains.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ const mainnet: Chain = {
1313
rpcUrl: "https://cloudflare-eth.com",
1414
explorerUrl: "https://etherscan.io",
1515
};
16-
const goerli: Chain = {
17-
id: 5,
18-
name: "Ethereum Goerli",
19-
network: "goerli",
20-
rpcUrl: "https://rpc.ankr.com/eth_goerli",
21-
explorerUrl: "https://goerli.etherscan.io",
22-
};
2316
const sepolia: Chain = {
2417
id: 11155111,
25-
name: "Ethereum Sepolia",
18+
name: "Ethereum Sepolia Testnet",
2619
network: "sepolia",
2720
rpcUrl: "https://rpc.ankr.com/eth_sepolia",
2821
explorerUrl: "https://sepolia.etherscan.io",
2922
};
23+
const goerli: Chain = {
24+
id: 5,
25+
name: "Ethereum Goerli Testnet",
26+
network: "goerli",
27+
rpcUrl: "https://rpc.ankr.com/eth_goerli",
28+
explorerUrl: "https://goerli.etherscan.io",
29+
};
3030

3131
export type L2Chain = Chain & { l1Chain?: Chain; verificationApiUrl?: string };
3232
export const l2Chains: L2Chain[] = [

0 commit comments

Comments
 (0)