diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-04-03 05:02:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-03 05:02:25 +0800 |
commit | fd30fabfbd7707adf2e4bc3606362c1687aeed9a (patch) | |
tree | 72a1d84fc5d6cab4a6e071537db4054e7fd0d0c7 | |
parent | f6f144643f40378c7d4ae8fae845fa6d450c8573 (diff) | |
parent | d166cb2b1b0d8313c2b645b620d5270d9cf93b2d (diff) | |
download | tangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.tar tangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.tar.gz tangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.tar.bz2 tangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.tar.lz tangerine-wallet-browser-fd30fabfbd7707adf2e4bc3606362c1687aeed9a.tar.xz 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.js | 4 |
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) |