Skip to content

Commit

Permalink
docs: updates for how-to tutorials
Browse files Browse the repository at this point in the history
Fixing comments
  • Loading branch information
amelnytskyi committed Jun 3, 2024
1 parent 49be537 commit 2c512f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/tutorials/how-to-deposit-erc20/10.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dotenv.config();

// HTTP RPC endpoints
const L1_RPC_ENDPOINT = process.env.L1_RPC_ENDPOINT || ""; // or an RPC endpoint from Infura/Chainstack/QuickNode/etc.
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://sepolia.era.zksync.dev"; // or the zkSync Era mainnet
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "%%zk_testnet_rpc_url%%"; // or the zkSync Era mainnet

// ERC-20 Token (DAI) address in L1
const TOKEN_ADDRESS = "0x5C221E77624690fff6dd741493D735a17716c26B";
Expand Down
2 changes: 1 addition & 1 deletion content/tutorials/how-to-deposit-eth/10.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ dotenv.config();

// HTTP RPC endpoints
const L1_RPC_ENDPOINT = process.env.L1_RPC_ENDPOINT || ""; // or an RPC endpoint from Infura/Chainstack/QuickNode/etc.
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://sepolia.era.zksync.dev"; // or the zkSync Era mainnet
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "%%zk_testnet_rpc_url%%"; // or the zkSync Era mainnet

// Amount in ETH
const AMOUNT = "0.00001";
Expand Down
4 changes: 2 additions & 2 deletions content/tutorials/how-to-withdraw-erc20/10.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ dotenv.config();

// HTTP RPC endpoints
const L1_RPC_ENDPOINT = process.env.L1_RPC_ENDPOINT || ""; // or an RPC endpoint from Infura/Chainstack/QuickNode/etc.
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://sepolia.era.zksync.dev"; // or the zkSync Era mainnet
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "%%zk_testnet_rpc_url%%"; // or the zkSync Era mainnet

// ERC-20 Token address in L2
const TOKEN_ADDRESS = "<TOKEN_ADDRESS>";
Expand All @@ -98,7 +98,7 @@ async function main() {
console.log(`Running script to bridge ERC-20 to L1`);

// Initialize the wallet.
const l1provider = new Provider(L1_RPC_ENDPOINT);
const l1provider = new ethers.providers.JsonRpcProvider(L1_RPC_ENDPOINT);
const l2provider = new Provider(L2_RPC_ENDPOINT);
const wallet = new Wallet(WALLET_PRIV_KEY, l2provider, l1provider);

Expand Down
2 changes: 1 addition & 1 deletion content/tutorials/how-to-withdraw-eth/10.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ dotenv.config();

// HTTP RPC endpoints
const L1_RPC_ENDPOINT = process.env.L1_RPC_ENDPOINT || ""; // or an RPC endpoint from Infura/Chainstack/QuickNode/etc.
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://sepolia.era.zksync.dev"; // or the zkSync Era mainnet
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "%%zk_testnet_rpc_url%%"; // or the zkSync Era mainnet

// Wallet
const WALLET_PRIV_KEY = process.env.WALLET_PRIV_KEY || "";
Expand Down

0 comments on commit 2c512f5

Please sign in to comment.