diff --git a/neo-cli/CLI/MainService.NEP5.cs b/neo-cli/CLI/MainService.NEP5.cs index 04099184e..6801c7590 100644 --- a/neo-cli/CLI/MainService.NEP5.cs +++ b/neo-cli/CLI/MainService.NEP5.cs @@ -20,7 +20,7 @@ partial class MainService /// From /// Signer's accounts [ConsoleCommand("transfer", Category = "NEP5 Commands")] - private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, UInt160 from = null, UInt160[] signersAccounts = null) + private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, string data = null, UInt160 from = null, UInt160[] signersAccounts = null) { var asset = new AssetDescriptor(tokenHash); var value = BigDecimal.Parse(amount.ToString(CultureInfo.InvariantCulture), asset.Decimals); @@ -36,7 +36,8 @@ private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, UI { AssetId = tokenHash, Value = value, - ScriptHash = to + ScriptHash = to, + Data = data } }, from: from, cosigners: signersAccounts?.Select(p => new Signer { diff --git a/neo-cli/CLI/MainService.Wallet.cs b/neo-cli/CLI/MainService.Wallet.cs index f557aa846..8d3cb72d0 100644 --- a/neo-cli/CLI/MainService.Wallet.cs +++ b/neo-cli/CLI/MainService.Wallet.cs @@ -450,7 +450,7 @@ private void OnSignCommand(JObject jsonObjectToSign) /// From /// Signer's accounts [ConsoleCommand("send", Category = "Wallet Commands")] - private void OnSendCommand(UInt160 asset, UInt160 to, string amount, UInt160 from = null, UInt160[] signerAccounts = null) + private void OnSendCommand(UInt160 asset, UInt160 to, string amount, string data = null, UInt160 from = null, UInt160[] signerAccounts = null) { if (NoWallet()) return; string password = ReadUserInput("password", true); @@ -480,7 +480,8 @@ private void OnSendCommand(UInt160 asset, UInt160 to, string amount, UInt160 fro { AssetId = asset, Value = decimalAmount, - ScriptHash = to + ScriptHash = to, + Data = data } }, from: from, cosigners: signerAccounts?.Select(p => new Signer { diff --git a/neo-cli/neo-cli.csproj b/neo-cli/neo-cli.csproj index aa3950e85..1aeca3965 100644 --- a/neo-cli/neo-cli.csproj +++ b/neo-cli/neo-cli.csproj @@ -28,7 +28,7 @@ - +