Skip to content

Commit b31aff5

Browse files
committed
fix: typecheck
1 parent aef208e commit b31aff5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ 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-
// TODO Remove { withMetadata: false } once the API is fixed
195-
const { data: account, error } = await client.blockchain.getAccountByAddress(address, { withMetadata: false })
194+
const { data: account, error } = await client.blockchain.getAccountByAddress(address)
196195
if (error || account === undefined)
197196
return [false, JSON.stringify({ error, address }), undefined]
198197

0 commit comments

Comments
 (0)