aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-04-03 05:02:25 +0800
committerGitHub <noreply@github.com>2018-04-03 05:02:25 +0800
commitfd30fabfbd7707adf2e4bc3606362c1687aeed9a (patch)
tree72a1d84fc5d6cab4a6e071537db4054e7fd0d0c7
parentf6f144643f40378c7d4ae8fae845fa6d450c8573 (diff)
parentd166cb2b1b0d8313c2b645b620d5270d9cf93b2d (diff)
downloadtangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.tar.gz
tangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.tar.zst
tangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.zip
Merge pull request #3826 from danjm/ensure-txparams-0xprefixed
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)