Remove isBroadcasting from top-level wallet state (#190)
isBroadcasting is kept at the BroadcastTransactionStatus level, with a different state for each transaction.
This commit is contained in:
parent
a5f2c5e2e9
commit
8b286b5e8c
|
@ -25,7 +25,6 @@ export const INITIAL_STATE: State = {
|
||||||
inst: null,
|
inst: null,
|
||||||
balance: null,
|
balance: null,
|
||||||
tokens: {},
|
tokens: {},
|
||||||
isBroadcasting: false,
|
|
||||||
transactions: []
|
transactions: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -118,7 +117,6 @@ export function wallet(
|
||||||
case 'WALLET_BROADCAST_TX_REQUESTED':
|
case 'WALLET_BROADCAST_TX_REQUESTED':
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
isBroadcasting: true,
|
|
||||||
transactions: handleBroadcastTxRequested(state, action.payload.signedTx)
|
transactions: handleBroadcastTxRequested(state, action.payload.signedTx)
|
||||||
};
|
};
|
||||||
case 'WALLET_BROADCAST_TX_SUCCEEDED':
|
case 'WALLET_BROADCAST_TX_SUCCEEDED':
|
||||||
|
|
Loading…
Reference in New Issue