Skip to content

Commit

Permalink
target
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Apr 18, 2024
1 parent 82dfef0 commit 6b869d9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion adapters/balance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ export async function balance(
.for(Object.keys(chainData))
.process(async (block) =>
target == GAS_TOKEN
? await getBalance({ target, block: Number(block), chain, decimals })
? await getBalance({
target: owners[0],
block: Number(block),
chain,
decimals,
}).catch((r) => {
r;
})
: await multiCall({
calls: owners.map((o: string) => ({ target, params: [o] })),
abi: "erc20:balanceOf",
Expand Down

0 comments on commit 6b869d9

Please sign in to comment.