aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-26 01:49:09 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-26 03:21:35 +0800
commit0d39a3a8d445e3c18eea3509dc5049be4a6d2375 (patch)
tree28e0518ca1ea7acbda3a5f6f0b6ea78e1d085bf0 /ui/app
parentf89b76653434ff801779e10b9f8a9a546997cb9b (diff)
downloadtangerine-wallet-browser-0d39a3a8d445e3c18eea3509dc5049be4a6d2375.tar
tangerine-wallet-browser-0d39a3a8d445e3c18eea3509dc5049be4a6d2375.tar.gz
tangerine-wallet-browser-0d39a3a8d445e3c18eea3509dc5049be4a6d2375.tar.bz2
tangerine-wallet-browser-0d39a3a8d445e3c18eea3509dc5049be4a6d2375.tar.lz
tangerine-wallet-browser-0d39a3a8d445e3c18eea3509dc5049be4a6d2375.tar.xz
tangerine-wallet-browser-0d39a3a8d445e3c18eea3509dc5049be4a6d2375.tar.zst
tangerine-wallet-browser-0d39a3a8d445e3c18eea3509dc5049be4a6d2375.zip
Fix send token bug.
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/actions.js3
1 files changed, 2 insertions, 1 deletions
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))