|
|
@ -258,8 +258,9 @@ function reduceApp (state, action) { |
|
|
|
case actions.COMPLETED_TX: |
|
|
|
case actions.COMPLETED_TX: |
|
|
|
var unconfTxs = state.metamask.unconfTxs |
|
|
|
var unconfTxs = state.metamask.unconfTxs |
|
|
|
var unconfMsgs = state.metamask.unconfMsgs |
|
|
|
var unconfMsgs = state.metamask.unconfMsgs |
|
|
|
|
|
|
|
var network = state.metamask.network |
|
|
|
|
|
|
|
|
|
|
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs) |
|
|
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs, network) |
|
|
|
.filter(tx => tx !== tx.id) |
|
|
|
.filter(tx => tx !== tx.id) |
|
|
|
|
|
|
|
|
|
|
|
if (unconfTxList && unconfTxList.length > 0) { |
|
|
|
if (unconfTxList && unconfTxList.length > 0) { |
|
|
@ -523,14 +524,16 @@ function reduceApp (state, action) { |
|
|
|
function hasPendingTxs (state) { |
|
|
|
function hasPendingTxs (state) { |
|
|
|
var unconfTxs = state.metamask.unconfTxs |
|
|
|
var unconfTxs = state.metamask.unconfTxs |
|
|
|
var unconfMsgs = state.metamask.unconfMsgs |
|
|
|
var unconfMsgs = state.metamask.unconfMsgs |
|
|
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs) |
|
|
|
var network = state.metamask.network |
|
|
|
|
|
|
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs, network) |
|
|
|
return unconfTxList.length > 0 |
|
|
|
return unconfTxList.length > 0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function indexForPending (state, txId) { |
|
|
|
function indexForPending (state, txId) { |
|
|
|
var unconfTxs = state.metamask.unconfTxs |
|
|
|
var unconfTxs = state.metamask.unconfTxs |
|
|
|
var unconfMsgs = state.metamask.unconfMsgs |
|
|
|
var unconfMsgs = state.metamask.unconfMsgs |
|
|
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs) |
|
|
|
var network = state.metamask.network |
|
|
|
|
|
|
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs, network) |
|
|
|
let idx |
|
|
|
let idx |
|
|
|
unconfTxList.forEach((tx, i) => { |
|
|
|
unconfTxList.forEach((tx, i) => { |
|
|
|
if (tx.id === txId) { |
|
|
|
if (tx.id === txId) { |
|
|
|