Skip to content

Commit

Permalink
give a bit more gas to balanceOf (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahZinsmeister authored Dec 7, 2021
1 parent 744c313 commit 38cf4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/wallet/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function useTokenBalancesWithLoadingIndicator(
const validatedTokenAddresses = useMemo(() => validatedTokens.map((vt) => vt.address), [validatedTokens])
const ERC20Interface = new Interface(ERC20ABI) as Erc20Interface
const balances = useMultipleContractSingleData(validatedTokenAddresses, ERC20Interface, 'balanceOf', [address], {
gasRequired: 100_000,
gasRequired: 125_000,
})

const anyLoading: boolean = useMemo(() => balances.some((callState) => callState.loading), [balances])
Expand Down

0 comments on commit 38cf4f4

Please sign in to comment.