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

Commit

Permalink
Change nep (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Dec 3, 2020
1 parent 8737259 commit 92363c5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ partial class MainService
/// <param name="amount">Ammount</param>
/// <param name="from">From</param>
/// <param name="signersAccounts">Signer's accounts</param>
[ConsoleCommand("transfer", Category = "NEP5 Commands")]
[ConsoleCommand("transfer", Category = "NEP17 Commands")]
private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, string data = null, UInt160 from = null, UInt160[] signersAccounts = null)
{
var asset = new AssetDescriptor(tokenHash);
Expand Down Expand Up @@ -64,7 +64,7 @@ private void OnTransferCommand(UInt160 tokenHash, UInt160 to, decimal amount, st
/// </summary>
/// <param name="tokenHash">Script hash</param>
/// <param name="address">Address</param>
[ConsoleCommand("balanceOf", Category = "NEP5 Commands")]
[ConsoleCommand("balanceOf", Category = "NEP17 Commands")]
private void OnBalanceOfCommand(UInt160 tokenHash, UInt160 address)
{
var arg = new JObject();
Expand All @@ -85,7 +85,7 @@ private void OnBalanceOfCommand(UInt160 tokenHash, UInt160 address)
/// Process "name" command
/// </summary>
/// <param name="tokenHash">Script hash</param>
[ConsoleCommand("name", Category = "NEP5 Commands")]
[ConsoleCommand("name", Category = "NEP17 Commands")]
private void OnNameCommand(UInt160 tokenHash)
{
if (!OnInvokeWithResult(tokenHash, "name", out StackItem result, null)) return;
Expand All @@ -97,7 +97,7 @@ private void OnNameCommand(UInt160 tokenHash)
/// Process "decimals" command
/// </summary>
/// <param name="tokenHash">Script hash</param>
[ConsoleCommand("decimals", Category = "NEP5 Commands")]
[ConsoleCommand("decimals", Category = "NEP17 Commands")]
private void OnDecimalsCommand(UInt160 tokenHash)
{
if (!OnInvokeWithResult(tokenHash, "decimals", out StackItem result, null)) return;
Expand Down

0 comments on commit 92363c5

Please sign in to comment.