Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Allow cosigners in transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Jul 30, 2020
1 parent 731168c commit c186c36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neo-cli/CLI/MainService.NEP5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ partial class MainService
/// <param name="to">To</param>
/// <param name="amount">Ammount</param>
/// <param name="from">From</param>
/// <param name="cosigners">Cosigners</param>
[ConsoleCommand("transfer", Category = "NEP5 Commands")]
private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, UInt160 from = null)
private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, UInt160 from = null, UInt160[] cosigners = null)
{
var asset = new AssetDescriptor(tokenHash);
var value = BigDecimal.Parse(amount.ToString(CultureInfo.InvariantCulture), asset.Decimals);
Expand All @@ -36,7 +37,7 @@ private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, UI
Value = value,
ScriptHash = to
}
}, from: from);
}, from: from, cosigners: cosigners);

This comment has been minimized.

Copy link
@shargon

shargon Jul 30, 2020

Author Member
}
catch (InvalidOperationException e)
{
Expand Down

0 comments on commit c186c36

Please sign in to comment.