From eb1d45856fe98c7cd5cc6342328ab9ae3a4df083 Mon Sep 17 00:00:00 2001 From: SantiagoPittella Date: Thu, 30 May 2024 16:28:13 -0300 Subject: [PATCH] fix: use L1 address as constant --- packages/api/src/common/constants.ts | 1 + packages/api/src/config/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/api/src/common/constants.ts b/packages/api/src/common/constants.ts index 99cc0c6649..f2cb198b00 100644 --- a/packages/api/src/common/constants.ts +++ b/packages/api/src/common/constants.ts @@ -1 +1,2 @@ export const BASE_TOKEN_L2_ADDRESS = "0x000000000000000000000000000000000000800A"; +export const BASE_TOKEN_L1_ADDRESS = "0x0000000000000000000000000000000000000001"; diff --git a/packages/api/src/config/index.ts b/packages/api/src/config/index.ts index 41077cd39b..c31503a78f 100644 --- a/packages/api/src/config/index.ts +++ b/packages/api/src/config/index.ts @@ -1,6 +1,6 @@ import { TypeOrmModuleOptions } from "@nestjs/typeorm"; import * as featureFlags from "./featureFlags"; -import { BASE_TOKEN_L2_ADDRESS } from "../common/constants"; +import { BASE_TOKEN_L1_ADDRESS, BASE_TOKEN_L2_ADDRESS } from "../common/constants"; type BaseToken = { symbol: string; decimals: number; @@ -13,7 +13,7 @@ type BaseToken = { }; const defaultEthBaseToken: BaseToken = { l2Address: BASE_TOKEN_L2_ADDRESS, - l1Address: "0x0000000000000000000000000000000000000001", + l1Address: BASE_TOKEN_L1_ADDRESS, symbol: "ETH", name: "Ether", decimals: 18,