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,
|
||||
balance: null,
|
||||
tokens: {},
|
||||
isBroadcasting: false,
|
||||
transactions: []
|
||||
};
|
||||
|
||||
|
@ -118,7 +117,6 @@ export function wallet(
|
|||
case 'WALLET_BROADCAST_TX_REQUESTED':
|
||||
return {
|
||||
...state,
|
||||
isBroadcasting: true,
|
||||
transactions: handleBroadcastTxRequested(state, action.payload.signedTx)
|
||||
};
|
||||
case 'WALLET_BROADCAST_TX_SUCCEEDED':
|
||||
|
|
Loading…
Reference in New Issue