Merge pull request #3826 from danjm/ensure-txparams-0xprefixed
Ensure txParams are prefixed with 0x when sending.
This commit is contained in:
commit
fd30fabfbd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue