rpc: fix (*Client)TransferNEP11D

Four args should be specified: from, to, amount and tokenID.
This commit is contained in:
Anna Shaleva 2021-04-29 13:13:41 +03:00
parent 2fb083bd37
commit bc3a3d103e

View file

@ -123,7 +123,7 @@ func (c *Client) TransferNEP11D(acc *wallet.Account, to util.Uint160,
if err != nil {
return util.Uint256{}, fmt.Errorf("bad account address: %w", err)
}
tx, err := c.createNEP11TransferTx(acc, tokenHash, gas, cosigners, acc.Address, from, to, amount, tokenID)
tx, err := c.createNEP11TransferTx(acc, tokenHash, gas, cosigners, from, to, amount, tokenID)
if err != nil {
return util.Uint256{}, err
}