Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ You can get some Sepolia ETH from [this faucet](https://sepoliafaucet.com).

## Deposit ETH

Now that you have some ETH on L1 you can deposit that ETH into the `L1StandardBridge` contract. You'll then receive the same number of ETH on L2 in return.
Now that you have some ETH on L1 you can deposit that ETH into the `OptimismPortalProxy` contract. You'll then receive the same number of ETH on L2 in return.

<Tabs items={['depositETH', 'Full Code']}>
<Tabs.Tab>
Expand Down Expand Up @@ -167,7 +167,7 @@ Now that you have some ETH on L1 you can deposit that ETH into the `L1StandardBr

Wait for the L1 transaction to be processed and log the receipt.

```js file=<rootDir>/public/tutorials/cross-dom-bridge-eth.js#L52-L53 hash=0de1fe6dd17f753ab80d356b38d9ca41
```js file=<rootDir>/public/tutorials/cross-dom-bridge-eth.js#L52-L53 hash=bfe4a04887605d695e172961bbad3837
```

{<h3>Extract the L2 transaction hash</h3>}
Expand All @@ -188,7 +188,7 @@ Now that you have some ETH on L1 you can deposit that ETH into the `L1StandardBr
</Tabs.Tab>

<Tabs.Tab>
```js file=<rootDir>/public/tutorials/cross-dom-bridge-eth.js#L3-L63 hash=b7d72a54dcdbb9b89c6874e2862fde00
```js file=<rootDir>/public/tutorials/cross-dom-bridge-eth.js#L3-L63 hash=05887926cd297c83f77765c277f54ed5
```
</Tabs.Tab>
</Tabs>
Expand Down
2 changes: 1 addition & 1 deletion public/tutorials/cross-dom-bridge-eth.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const depositArgs = await publicClientL2.buildDepositTransaction({
const depositHash = await walletClientL1.depositTransaction(depositArgs);
console.log(`Deposit transaction hash on L1: ${depositHash}`);

const depositReceipt = await publicClientL1.waitForTransactionReceipt({ depositHash });
const depositReceipt = await publicClientL1.waitForTransactionReceipt({ hash: depositHash });
console.log('L1 transaction confirmed:', depositReceipt);

const [l2Hash] = getL2TransactionHashes(depositReceipt);
Expand Down