aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-20 08:44:11 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-20 08:44:11 +0800
commitb8c57433ce0f6a50318671912b02082e12a0ecb0 (patch)
tree05fec045a3ff46218871c9d662a44e3ee875dc3e /app/scripts
parentf72887a0a288c2e9a31adea34146ed6857bdb6ae (diff)
downloadtangerine-wallet-browser-b8c57433ce0f6a50318671912b02082e12a0ecb0.tar
tangerine-wallet-browser-b8c57433ce0f6a50318671912b02082e12a0ecb0.tar.gz
tangerine-wallet-browser-b8c57433ce0f6a50318671912b02082e12a0ecb0.tar.bz2
tangerine-wallet-browser-b8c57433ce0f6a50318671912b02082e12a0ecb0.tar.lz
tangerine-wallet-browser-b8c57433ce0f6a50318671912b02082e12a0ecb0.tar.xz
tangerine-wallet-browser-b8c57433ce0f6a50318671912b02082e12a0ecb0.tar.zst
tangerine-wallet-browser-b8c57433ce0f6a50318671912b02082e12a0ecb0.zip
Add completed tx hash to persisted tx log
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/idStore.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index b451fd6d4..66194fd41 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -337,6 +337,10 @@ function IdManagement(opts) {
txParams.gasLimit = ethUtil.addHexPrefix(txParams.gasLimit || txParams.gas)
txParams.nonce = ethUtil.addHexPrefix(txParams.nonce)
var tx = new Transaction(txParams)
+ var hash = '0x' + tx.hash().toString('hex')
+ var txLog = configManager.getTxWithParams(txParams)
+ txLog.hash = hash
+ configManager.updateTx(txLog)
var rawTx = '0x'+tx.serialize().toString('hex')
return '0x'+LightwalletSigner.signTx(this.keyStore, this.derivedKey, rawTx, txParams.from, this.hdPathString)
}