Ensure txParams are prefixed with 0x when sending.

feature/default_network_editable
Dan 7 years ago
parent a180fb0320
commit d166cb2b1b
  1. 4
      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)

Loading…
Cancel
Save