Skip to content

Commit

Permalink
fix: use address 0 for eth
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoPittella committed May 30, 2024
1 parent eb1d458 commit a61cc95
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const BASE_TOKEN_L2_ADDRESS = "0x000000000000000000000000000000000000800A";
export const BASE_TOKEN_L1_ADDRESS = "0x0000000000000000000000000000000000000001";
export const BASE_TOKEN_L1_ADDRESS = "0x0000000000000000000000000000000000000000";
2 changes: 1 addition & 1 deletion packages/api/src/config/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("config", () => {
expect(config()).toEqual({
baseTokenData: {
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down
12 changes: 6 additions & 6 deletions packages/api/test/address.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ describe("AddressController (e2e)", () => {
balance: "34500",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand Down Expand Up @@ -469,7 +469,7 @@ describe("AddressController (e2e)", () => {
balance: "34500",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand Down Expand Up @@ -538,7 +538,7 @@ describe("AddressController (e2e)", () => {
balance: "34500",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand Down Expand Up @@ -607,7 +607,7 @@ describe("AddressController (e2e)", () => {
balance: "34500",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand Down Expand Up @@ -678,7 +678,7 @@ describe("AddressController (e2e)", () => {
balance: "34500",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand Down Expand Up @@ -1226,7 +1226,7 @@ describe("AddressController (e2e)", () => {
to: "0x91d0a23f34e535e44Df8Ba84c53a0945cf0eEB60",
token: {
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down
8 changes: 4 additions & 4 deletions packages/api/test/token.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ describe("TokenController (e2e)", () => {
.expect((res) =>
expect(res.body).toStrictEqual({
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down Expand Up @@ -657,7 +657,7 @@ describe("TokenController (e2e)", () => {
to: "0x52312AD6f01657413b2eaE9287f6B9ADaD93D5FE",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand All @@ -680,7 +680,7 @@ describe("TokenController (e2e)", () => {
to: "0x52312AD6f01657413b2eaE9287f6B9ADaD93D5FE",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand All @@ -703,7 +703,7 @@ describe("TokenController (e2e)", () => {
to: "0x52312AD6f01657413b2eaE9287f6B9ADaD93D5FE",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand Down
12 changes: 6 additions & 6 deletions packages/api/test/transaction.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ describe("TransactionController (e2e)", () => {
to: "0x52312Ad6f01657413b2eae9287F6b9Adad93d5fd",
token: {
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down Expand Up @@ -1209,7 +1209,7 @@ describe("TransactionController (e2e)", () => {
to: "0x52312Ad6f01657413b2eae9287F6b9Adad93d5fd",
token: {
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down Expand Up @@ -1255,7 +1255,7 @@ describe("TransactionController (e2e)", () => {
to: "0x52312Ad6f01657413b2eae9287F6b9Adad93d5fd",
token: {
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down Expand Up @@ -1301,7 +1301,7 @@ describe("TransactionController (e2e)", () => {
to: "0x52312Ad6f01657413b2eae9287F6b9Adad93d5fd",
token: {
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down Expand Up @@ -1347,7 +1347,7 @@ describe("TransactionController (e2e)", () => {
to: "0x52312Ad6f01657413b2eae9287F6b9Adad93d5fd",
token: {
l2Address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
decimals: 18,
Expand Down Expand Up @@ -1415,7 +1415,7 @@ describe("TransactionController (e2e)", () => {
to: "0x52312Ad6f01657413b2eae9287F6b9Adad93d5fd",
token: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
name: "Ether",
symbol: "ETH",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/tests/components/FeeData.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const feeData = {
{
tokenInfo: {
decimals: 18,
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x0000000000000000000000000000000000000000",
symbol: "ETH",
name: "Ether",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const transaction: TransactionItem = {
type: "refund",
tokenInfo: {
address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
symbol: "ETH",
name: "Ether",
Expand All @@ -65,7 +65,7 @@ const transaction: TransactionItem = {
type: "refund",
tokenInfo: {
address: "0x000000000000000000000000000000000000800A",
l1Address: "0x0000000000000000000000000000000000000001",
l1Address: "0x0000000000000000000000000000000000000000",
l2Address: "0x000000000000000000000000000000000000800A",
symbol: "ETH",
name: "Ether",
Expand Down
2 changes: 1 addition & 1 deletion packages/data-fetcher/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as l2StandardERC20Abi from "./abis/l2StandardERC20.json";

export const ZERO_HASH_64 = "0x0000000000000000000000000000000000000000000000000000000000000000";
export const BASE_TOKEN_ADDRESS = "0x000000000000000000000000000000000000800a";
export const ETH_L1_ADDRESS = "0x0000000000000000000000000000000000000001";
export const ETH_L1_ADDRESS = "0x0000000000000000000000000000000000000000";

export const CONTRACT_INTERFACES = {
ERC20: {
Expand Down

0 comments on commit a61cc95

Please sign in to comment.