1
0
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:
kumavis 2016-02-12 12:55:20 -08:00
parent 390141d55d
commit bc2ec9f464
2 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -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
// //