Skip to content

Commit

Permalink
Merge pull request #153 from bnb-chain/feat/addressCheck
Browse files Browse the repository at this point in the history
chore: Check meson native token
  • Loading branch information
Halibao-Lala authored Dec 3, 2024
2 parents 1a813cb + 76406d3 commit 6fc82c7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ export const useValidateSendToken = () => {
const hexNum = fromChainId?.toString(16);
const chainInfo = mesonConfig.result.filter((chainInfo) => {
const tokenInfo = chainInfo.tokens.filter(
(token) => token?.addr === tokenAddress && token.id === tokenSymbol.toLowerCase(),
(token) =>
(token?.addr === tokenAddress && token.id === tokenSymbol.toLowerCase()) ||
(!token?.addr &&
tokenAddress === '0x0000000000000000000000000000000000000000' &&
token.id === tokenSymbol.toLowerCase()),
);
if (!!tokenInfo && tokenInfo.length > 0) {
console.log('Meson token info', tokenInfo);
Expand Down

0 comments on commit 6fc82c7

Please sign in to comment.