unknown token lookup generates new metadata format

This commit is contained in:
Tim
2024-03-27 22:21:32 -04:00
parent 0fc6fc7168
commit ed553f4dc0

View File

@@ -65,11 +65,12 @@ export async function addExtraToken(chainId, addr) {
}
else {
const token = new ethers.Contract(addr, erc20Abi, s.provider)
Promise.all( [token.symbol(), token.decimals()] ).then((symbol,decimals)=>{
Promise.all( [token.name(), token.symbol(), token.decimals()] ).then((name,symbol,decimals)=>{
info = {
address: addr,
symbol: symbol,
decimals: decimals,
a: addr,
n: name,
s: symbol,
d: decimals,
}
s.addToken(chainId, info)
resolve(info)