Skip to content

Commit 6fc5b9b

Browse files
authored
Enable broader support for gas top up (#855)
* Enable broader support for gas top up * feat: changeset
1 parent 387f81d commit 6fc5b9b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.changeset/flat-cloths-start.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@relayprotocol/relay-kit-ui': patch
3+
---
4+
5+
Enable broader support for gas top up

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)