Skip to content

Commit 5360a92

Browse files
committed
fix: erc20 discovery balance
1 parent 3dd8658 commit 5360a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/tokenscript-viewer/src/integration/discoveryAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class DiscoveryAdapter implements ITokenDiscoveryAdapter {
173173
// Rework so collection data API isn't required for erc20
174174
} else if (tokenData.length > 0) {
175175
token.name = tokenData[0].title;
176-
token.balance = tokenData[0].data?.balance ? BigInt(tokenData[0].data?.balance) : 0;
176+
token.balance = tokenData[0].balance ? BigInt(tokenData[0].balance) : 0;
177177
token.symbol = tokenData[0].symbol;
178178
token.decimals = tokenData[0].data?.decimals;
179179
} else {

0 commit comments

Comments
 (0)