Merge pull request #3826 from danjm/ensure-txparams-0xprefixed

Ensure txParams are prefixed with 0x when sending.
This commit is contained in:
kumavis 2018-04-02 14:02:25 -07:00 committed by GitHub
commit fd30fabfbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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)