1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Add personalMessages to function to calculate pending tx index.

This commit is contained in:
Kevin Serrano 2017-03-24 16:39:55 -04:00
parent 5cc934f18c
commit 5cd917b0e9
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1

View File

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