mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix send token bug.
This commit is contained in:
parent
f89b766534
commit
0d39a3a8d4
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user