We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a04f6 commit 4a0919fCopy full SHA for 4a0919f
ui/ducks/bridge/bridge.ts
@@ -1,5 +1,6 @@
1
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
2
import { type Hex, type CaipChainId } from '@metamask/utils';
3
+import { zeroAddress } from 'ethereumjs-util';
4
import {
5
type BridgeToken,
6
ChainId,
@@ -94,6 +95,7 @@ const bridgeSlice = createSlice({
94
95
balance: payload.balance ?? '0',
96
string: payload.string ?? '0',
97
chainId: formatChainIdToCaip(payload.chainId),
98
+ address: payload.address || zeroAddress(),
99
};
100
} else {
101
state.toToken = payload;
0 commit comments