Skip to content

Commit

Permalink
chore: Check meson native token
Browse files Browse the repository at this point in the history
  • Loading branch information
Halibao-Lala committed Dec 3, 2024
1 parent bb5d7ba commit 76406d3
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 76406d3

Please sign in to comment.