Skip to content

Commit

Permalink
fix erc20StateByDay
Browse files Browse the repository at this point in the history
  • Loading branch information
apexearth committed Nov 18, 2024
1 parent 4be7394 commit e58ca98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server-extension/erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ERC20Resolver {

@Query(() => [ERC20StateByDay])
async erc20StateByDay(
@Arg('chainId', () => String, { nullable: false }) chainId: number,
@Arg('chainId', () => Number, { nullable: false }) chainId: number,
@Arg('address', () => String, { nullable: false }) address: string,
@Arg('from', () => String, { nullable: false }) from: string,
@Arg('to', () => String, { nullable: true }) to: string | null,
Expand Down Expand Up @@ -108,7 +108,7 @@ export class ERC20Resolver {
chainId: row.chain_id,
address: row.address,
day: row.day,
totalSupply: BigInt(row.total_supply),
totalSupply: BigInt(row.total_supply ?? 0n),
holderCount: row.holder_count,
}),
)
Expand Down

0 comments on commit e58ca98

Please sign in to comment.