Skip to content

Commit

Permalink
PRIV_KEY to PRIVATE_KEY on the .mjs file
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt committed Feb 19, 2025
1 parent 74cf432 commit b7dda56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/stack/interop/tutorials/bridge-crosschain-eth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ The tutorial uses these primary tools:

3. Place this in `src/transfer-eth.mts`:

```typescript file=<rootDir>/public/tutorials/transfer-eth.mts hash=41c1d559ac010d3407a3c056f2f49405
```typescript file=<rootDir>/public/tutorials/transfer-eth.mts hash=c6032f96e0fc040ad8fff7bc2892bbb6
```

<details>
Expand All @@ -146,7 +146,7 @@ The tutorial uses these primary tools:

Import all chain definitions from `@eth-optimism/viem`.

```typescript file=<rootDir>/public/tutorials/transfer-eth.mts#L29-L32 hash=56873f8d2eebe5975a0c0b9ac7eecfe7
```typescript file=<rootDir>/public/tutorials/transfer-eth.mts#L29-L32 hash=e8c21357997ea12151305337eced7d71
```

If the address we use is `0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266`, one of the prefunded addresses on `anvil`, assume we're using Supersim.
Expand Down
2 changes: 1 addition & 1 deletion public/tutorials/transfer-eth.mts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
import superchainWethAbi from './SuperchainWETH.abi.json'

const supersimAddress="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
const account = privateKeyToAccount(process.env.PRIV_KEY as `0x${string}`)
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`)
const sourceChain = account.address == supersimAddress ? supersimL2A : interopAlpha0
const destinationChain = account.address == supersimAddress ? supersimL2B : interopAlpha1

Expand Down

0 comments on commit b7dda56

Please sign in to comment.