From 0d39a3a8d445e3c18eea3509dc5049be4a6d2375 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 25 Oct 2017 15:19:09 -0230 Subject: [PATCH] Fix send token bug. --- ui/app/actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/actions.js b/ui/app/actions.js index 48ebc240e..445d19529 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -1,5 +1,6 @@ const abi = require('human-standard-token-abi') const getBuyEthUrl = require('../../app/scripts/lib/buy-eth-url') +const ethUtil = require('ethereumjs-util') var actions = { _setBackgroundConnection: _setBackgroundConnection, @@ -641,7 +642,7 @@ function signTokenTx (tokenAddress, toAddress, amount, txData) { return dispatch => { dispatch(actions.showLoadingIndication()) const token = global.eth.contract(abi).at(tokenAddress) - token.transfer(toAddress, amount, txData) + token.transfer(toAddress, ethUtil.addHexPrefix(amount), txData) .catch(err => { dispatch(actions.hideLoadingIndication()) dispatch(actions.displayWarning(err.message))