From 48c6857dce65338d520c53e8ee6083dbabd250e2 Mon Sep 17 00:00:00 2001 From: Ethan Rouimi Date: Sat, 2 Nov 2024 14:08:24 +0100 Subject: [PATCH 1/2] change outdated docs --- docs/src/getting-started/first-steps.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/src/getting-started/first-steps.md b/docs/src/getting-started/first-steps.md index 0079200b..028e66b6 100644 --- a/docs/src/getting-started/first-steps.md +++ b/docs/src/getting-started/first-steps.md @@ -14,12 +14,13 @@ Grab the balance of the sender account on L2: cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://127.0.0.1:9545 ``` -**2. Call `bridgeETH` function on the `L1StandardBridgeProxy` contract on the L1 (chain 900)** +**2. Send Ether to `OptimismPortal` contract of the respective L1 (on chain 900)** -Initiate a bridge transaction on the L1: +Initiate a bridge transaction on the L1:
+*In the case of the chain 901 the contract is `0x37a418800d0c812A9dE83Bc80e993A6b76511B57`* ```sh -cast send 0xa01ae68902e205B420FD164435F299E07b0C778b "bridgeETH(uint32 _minGasLimit, bytes calldata _extraData)" 50000 0x --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 +cast send 0x37a418800d0c812A9dE83Bc80e993A6b76511B57 --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 ``` **3. Check the balance on the L2 (chain 901)** From 2fc11f37a5a71f6f211fe16dcfc33505f71fcae8 Mon Sep 17 00:00:00 2001 From: Ethan Rouimi Date: Sat, 2 Nov 2024 14:49:38 +0100 Subject: [PATCH 2/2] add different method --- docs/src/getting-started/first-steps.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/src/getting-started/first-steps.md b/docs/src/getting-started/first-steps.md index 028e66b6..156f6656 100644 --- a/docs/src/getting-started/first-steps.md +++ b/docs/src/getting-started/first-steps.md @@ -14,7 +14,14 @@ Grab the balance of the sender account on L2: cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://127.0.0.1:9545 ``` -**2. Send Ether to `OptimismPortal` contract of the respective L1 (on chain 900)** +
+ +**2. Send the Ether** +
+It exists two different methods to do this action + +### First method - `OptimismPortal` +Send the Ether to `OptimismPortal` contract of the respective L2 (on chain 900)** Initiate a bridge transaction on the L1:
*In the case of the chain 901 the contract is `0x37a418800d0c812A9dE83Bc80e993A6b76511B57`* @@ -23,6 +30,19 @@ Initiate a bridge transaction on the L1:
cast send 0x37a418800d0c812A9dE83Bc80e993A6b76511B57 --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 ``` +### Second method - `L1StandardBridge` + +**Call `bridgeETH` function on the `L1StandardBridgeProxy` / `L1StandardBridge` contract of the respective L2 on L1 (chain 900)** +*In the case of the chain 901 the contract is `0x8d515eb0e5F293B16B6bBCA8275c060bAe0056B0`* + +Initiate a bridge transaction on the L1: + +```sh +cast send 0x8d515eb0e5F293B16B6bBCA8275c060bAe0056B0 "bridgeETH(uint32 _minGasLimit, bytes calldata _extraData)" 50000 0x --value 0.1ether --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 +``` + +
+ **3. Check the balance on the L2 (chain 901)** Verify that the ETH balance of the sender has increased on the L2: