aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-03 03:08:51 +0800
committerDan <danjm.com@gmail.com>2018-04-03 03:08:51 +0800
commitd166cb2b1b0d8313c2b645b620d5270d9cf93b2d (patch)
tree928433677b38e8ee4e854687303af5bab7813689
parenta180fb03209bdbc4df9645a665108a8cd8788a5a (diff)
downloadtangerine-wallet-browser-d166cb2b1b0d8313c2b645b620d5270d9cf93b2d.tar
tangerine-wallet-browser-d166cb2b1b0d8313c2b645b620d5270d9cf93b2d.tar.gz
tangerine-wallet-browser-d166cb2b1b0d8313c2b645b620d5270d9cf93b2d.tar.bz2
tangerine-wallet-browser-d166cb2b1b0d8313c2b645b620d5270d9cf93b2d.tar.lz
tangerine-wallet-browser-d166cb2b1b0d8313c2b645b620d5270d9cf93b2d.tar.xz
tangerine-wallet-browser-d166cb2b1b0d8313c2b645b620d5270d9cf93b2d.tar.zst
tangerine-wallet-browser-d166cb2b1b0d8313c2b645b620d5270d9cf93b2d.zip
Ensure txParams are prefixed with 0x when sending.
-rw-r--r--ui/app/send-v2.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index bcc5cb03d..0f2997fb2 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -635,6 +635,10 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
txParams.to = to
}
+ Object.keys(txParams).forEach(key => {
+ txParams[key] = ethUtil.addHexPrefix(txParams[key])
+ })
+
selectedToken
? signTokenTx(selectedToken.address, to, amount, txParams)
: signTx(txParams)