Skip to content

Commit 4a0919f

Browse files
committed
fix: fetch quotes when dest asset is native
1 parent 66a04f6 commit 4a0919f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/ducks/bridge/bridge.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
22
import { type Hex, type CaipChainId } from '@metamask/utils';
3+
import { zeroAddress } from 'ethereumjs-util';
34
import {
45
type BridgeToken,
56
ChainId,
@@ -94,6 +95,7 @@ const bridgeSlice = createSlice({
9495
balance: payload.balance ?? '0',
9596
string: payload.string ?? '0',
9697
chainId: formatChainIdToCaip(payload.chainId),
98+
address: payload.address || zeroAddress(),
9799
};
98100
} else {
99101
state.toToken = payload;

0 commit comments

Comments
 (0)