From eacd20b04996970f151c52963b6c336784894c5c Mon Sep 17 00:00:00 2001 From: BokkyPooBah Date: Sat, 27 Apr 2024 13:58:06 +1000 Subject: [PATCH] wip --- docs/online.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/online.html b/docs/online.html index 91b2be6..fc5ddf9 100644 --- a/docs/online.html +++ b/docs/online.html @@ -831,9 +831,9 @@ const provider = new ethers.providers.Web3Provider(window.ethereum); this.settings.prepare.chainId = this.chainId; const tokenInfo = this.settings.prepare.token.address && this.addresses[this.settings.prepare.token.address] || {}; - // console.log("1: " + JSON.stringify(this.addresses[this.settings.prepare.token.address])); + console.log("tokenInfo: " + JSON.stringify(tokenInfo, null, 2)); // console.log("2: " + JSON.stringify(this.addresses[this.settings.prepare.token.address].chains)); - if (this.settings.prepare.token.address && tokenInfo.chains.includes(this.chainId)) { + if (this.settings.prepare.token.address && tokenInfo.chains.includes(this.chainId.toString())) { this.settings.prepare.token.name = tokenInfo.name; this.settings.prepare.token.symbol = tokenInfo.symbol; this.settings.prepare.token.decimals = tokenInfo.decimals;