Skip to content

Commit aec4890

Browse files
committed
fix: make sure typecheck works
1 parent 7f99753 commit aec4890

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nimiq-validator-trustscore/src/fetcher.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export async function fetchSnapshotEpoch(client: NimiqRPCClient, options: FetchS
191191
const slotsDistribution = Object.fromEntries((electionBlock as ElectionMacroBlock).slots.map(({ validator, numSlots }) => [validator, numSlots]))
192192

193193
const result: ResultSync<SnapshotEpoch['validators'][number]>[] = await Promise.all(validatorsStakingContract.map(async ({ address }) => {
194-
const { data: account, error } = await client.blockchain.getAccountByAddress(address)
194+
// TODO Remove { withMetadata: false } once the API is fixed
195+
const { data: account, error } = await client.blockchain.getAccountByAddress(address, { withMetadata: false })
195196
if (error || account === undefined)
196197
return [false, JSON.stringify({ error, address }), undefined]
197198

0 commit comments

Comments
 (0)