Skip to content

Commit 7ca1788

Browse files
committed
Enable broader support for gas top up
1 parent 387f81d commit 7ca1788

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/ui/src/hooks/useGasTopUpRequired.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ export default (
2424
address !== undefined &&
2525
chain !== undefined &&
2626
chain?.currency?.address !== undefined &&
27-
chain?.currency?.supportsBridging &&
28-
chain?.vmType === 'evm' &&
2927
chain.id !== fromChain?.id &&
3028
chain.id !== 169 &&
31-
isErc20Currency
29+
chain?.vmType === 'evm' &&
30+
isErc20Currency &&
31+
(chain?.currency?.supportsBridging || chain?.tokenSupport === 'All')
32+
3233
const { value: gasBalance } = useCurrencyBalance({
3334
chain,
3435
address,

0 commit comments

Comments
 (0)