mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
idStore - cancel tx
This commit is contained in:
parent
390141d55d
commit
bc2ec9f464
@ -79,6 +79,7 @@ function handleInternalCommunication(remotePort){
|
|||||||
submitPassword: idStore.submitPassword.bind(idStore),
|
submitPassword: idStore.submitPassword.bind(idStore),
|
||||||
setSelectedAddress: idStore.setSelectedAddress.bind(idStore),
|
setSelectedAddress: idStore.setSelectedAddress.bind(idStore),
|
||||||
signTransaction: idStore.signTransaction.bind(idStore),
|
signTransaction: idStore.signTransaction.bind(idStore),
|
||||||
|
cancelTransaction: idStore.cancelTransaction.bind(idStore),
|
||||||
setLocked: idStore.setLocked.bind(idStore),
|
setLocked: idStore.setLocked.bind(idStore),
|
||||||
})
|
})
|
||||||
duplex.pipe(connection).pipe(duplex)
|
duplex.pipe(connection).pipe(duplex)
|
||||||
|
@ -131,6 +131,14 @@ IdentityStore.prototype.signTransaction = function(password, txId, cb){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IdentityStore.prototype.cancelTransaction = function(txId){
|
||||||
|
const self = this
|
||||||
|
|
||||||
|
var txData = self._currentState.unconfTxs[txId]
|
||||||
|
delete self._currentState.unconfTxs[txId]
|
||||||
|
self._didUpdate()
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// private
|
// private
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user