Skip to content

Commit

Permalink
fix: remove enabled for fee param from network config
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Dec 20, 2023
1 parent 4313fe8 commit 2e124fd
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions hyperchains/example.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"l1Address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"iconUrl": "/img/eth.svg",
"enabledForFees": true
"iconUrl": "/img/eth.svg"
}
]
}
Expand Down
1 change: 0 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export type Token = {
symbol: string;
decimals: number;
iconUrl?: string;
enabledForFees?: boolean;
price?: TokenPrice;
};
export type TokenAmount = Token & { amount: BigNumberish };
Expand Down
1 change: 0 additions & 1 deletion utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ export const ETH_TOKEN: Token = {
name: "Ether",
decimals: 18,
iconUrl: "/img/eth.svg",
enabledForFees: true,
};
1 change: 0 additions & 1 deletion utils/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const mapApiToken = (token: Api.Response.Token): Token => {
name: token.name || "unknown",
decimals: token.decimals,
iconUrl: token.iconURL || undefined,
enabledForFees: token.l2Address === ETH_TOKEN.address,
price: token.usdPrice || undefined,
};
};
Expand Down

0 comments on commit 2e124fd

Please sign in to comment.