Skip to content

Commit

Permalink
fix: default hyperchain base address (#284)
Browse files Browse the repository at this point in the history
# What ❔
Fixing default base token address value in hyperchain setup script.

## Why ❔
Base token address on L2 is always "800A". This script might not work
for hyperchains with custom L1 base token.

## Checklist
- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.

Signed-off-by: Vasyl Ivanchuk <[email protected]>
Co-authored-by: Alexander Melnikov <[email protected]>
  • Loading branch information
vasyl-ivanchuk and sanekmelnikov authored Aug 27, 2024
1 parent 2986242 commit d951ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup-hyperchain-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const buildAppConfig = (zkSyncEnvs: { [key: string]: string }) => ({
name: zkSyncEnvs.CHAIN_ETH_ZKSYNC_NETWORK || "",
published: true,
rpcUrl: zkSyncEnvs.API_WEB3_JSON_RPC_HTTP_URL || "",
baseTokenAddress: zkSyncEnvs.ETH_TOKEN_L2_ADDRESS || "0x000000000000000000000000000000000000800A",
baseTokenAddress: "0x000000000000000000000000000000000000800A",
}]
});

Expand Down

0 comments on commit d951ad0

Please sign in to comment.