Add personalMessages to function to calculate pending tx index.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 5cc934f18c
commit 5cd917b0e9
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 3
      ui/app/reducers/app.js

@ -592,8 +592,9 @@ function hasPendingTxs (state) {
function indexForPending (state, txId) { function indexForPending (state, txId) {
var unapprovedTxs = state.metamask.unapprovedTxs var unapprovedTxs = state.metamask.unapprovedTxs
var unapprovedMsgs = state.metamask.unapprovedMsgs var unapprovedMsgs = state.metamask.unapprovedMsgs
var unapprovedPersonalMsgs = state.metamask.unapprovedPersonalMsgs
var network = state.metamask.network var network = state.metamask.network
var unconfTxList = txHelper(unapprovedTxs, unapprovedMsgs, network) var unconfTxList = txHelper(unapprovedTxs, unapprovedMsgs, unapprovedPersonalMsgs, network)
let idx let idx
unconfTxList.forEach((tx, i) => { unconfTxList.forEach((tx, i) => {
if (tx.id === txId) { if (tx.id === txId) {

Loading…
Cancel
Save