Ensure sent token value is recognized as hex.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent a195427e72
commit 66ed4dfaa3
  1. 2
      ui/app/components/send-token/index.js

@ -165,7 +165,7 @@ SendTokenScreen.prototype.clearErrorsFor = function (field) {
SendTokenScreen.prototype.getAmountToSend = function (amount, selectedToken) {
const { decimals } = selectedToken || {}
const multiplier = Math.pow(10, Number(decimals || 0))
const sendAmount = Number(amount * multiplier).toString(16)
const sendAmount = '0x' + Number(amount * multiplier).toString(16)
return sendAmount
}

Loading…
Cancel
Save