aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-02-13 04:55:20 +0800
committerkumavis <aaron@kumavis.me>2016-02-13 04:55:20 +0800
commitbc2ec9f464150507f00a7653a4504644853dd666 (patch)
tree6d4d0c150e57f9ff67023d57b201ab97fc42a798 /app/scripts
parent390141d55d6813192da49021c6023524f96c48d7 (diff)
downloadtangerine-wallet-browser-bc2ec9f464150507f00a7653a4504644853dd666.tar
tangerine-wallet-browser-bc2ec9f464150507f00a7653a4504644853dd666.tar.gz
tangerine-wallet-browser-bc2ec9f464150507f00a7653a4504644853dd666.tar.bz2
tangerine-wallet-browser-bc2ec9f464150507f00a7653a4504644853dd666.tar.lz
tangerine-wallet-browser-bc2ec9f464150507f00a7653a4504644853dd666.tar.xz
tangerine-wallet-browser-bc2ec9f464150507f00a7653a4504644853dd666.tar.zst
tangerine-wallet-browser-bc2ec9f464150507f00a7653a4504644853dd666.zip
idStore - cancel tx
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/background.js1
-rw-r--r--app/scripts/lib/idStore.js8
2 files changed, 9 insertions, 0 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 4dc92cea5..6a1b7404f 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -79,6 +79,7 @@ function handleInternalCommunication(remotePort){
submitPassword: idStore.submitPassword.bind(idStore),
setSelectedAddress: idStore.setSelectedAddress.bind(idStore),
signTransaction: idStore.signTransaction.bind(idStore),
+ cancelTransaction: idStore.cancelTransaction.bind(idStore),
setLocked: idStore.setLocked.bind(idStore),
})
duplex.pipe(connection).pipe(duplex)
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 0dfc4deed..73992caa4 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -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
//