Skip to content

Commit

Permalink
fix: erc20 reindex totalSupply
Browse files Browse the repository at this point in the history
  • Loading branch information
phamphong9981 committed Jul 29, 2024
1 parent c97ec7c commit e0c7cf0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/evm/erc20_reindex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class Erc20Reindexer {
contract.read.name().catch(() => Promise.resolve(undefined)),
contract.read.symbol().catch(() => Promise.resolve(undefined)),
contract.read.decimals().catch(() => Promise.resolve(undefined)),
contract.read.totalSupply().catch(() => Promise.resolve(undefined)),
]);
await Erc20Contract.query()
.insert(
Expand All @@ -68,7 +67,7 @@ export class Erc20Reindexer {
address,
symbol: contractInfo[1],
name: contractInfo[0],
total_supply: contractInfo[3]?.toString(),
total_supply: '0',
decimal: contractInfo[2],
track: true,
last_updated_height: Number(blockHeight),
Expand Down

0 comments on commit e0c7cf0

Please sign in to comment.