Skip to content

Commit

Permalink
fix: erc20 discovery balance
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Nov 29, 2024
1 parent 3dd8658 commit 93b73d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ export class DiscoveryAdapter implements ITokenDiscoveryAdapter {
// Rework so collection data API isn't required for erc20
} else if (tokenData.length > 0) {
token.name = tokenData[0].title;
token.balance = tokenData[0].data?.balance ? BigInt(tokenData[0].data?.balance) : 0;
token.balance = tokenData[0].balance ? BigInt(tokenData[0].balance) : 0;
token.symbol = tokenData[0].symbol;
token.decimals = tokenData[0].data?.decimals;
token.decimals = tokenData[0].decimals;
} else {
token.name = collectionData.title;
token.balance = 0;
Expand Down

0 comments on commit 93b73d7

Please sign in to comment.