We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd8658 commit 5360a92Copy full SHA for 5360a92
javascript/tokenscript-viewer/src/integration/discoveryAdapter.ts
@@ -173,7 +173,7 @@ export class DiscoveryAdapter implements ITokenDiscoveryAdapter {
173
// Rework so collection data API isn't required for erc20
174
} else if (tokenData.length > 0) {
175
token.name = tokenData[0].title;
176
- token.balance = tokenData[0].data?.balance ? BigInt(tokenData[0].data?.balance) : 0;
+ token.balance = tokenData[0].balance ? BigInt(tokenData[0].balance) : 0;
177
token.symbol = tokenData[0].symbol;
178
token.decimals = tokenData[0].data?.decimals;
179
} else {
0 commit comments