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

Commit

Permalink
Add 'nativecontract' command (#607)
Browse files Browse the repository at this point in the history
* 打开钱包当文件不存在时错误提示更友好

* Show wallet height when executing "show state" command. Keep in line with neo-gui.

* fixed bug

* 修复Bug

* optimize

* fix

* Add 'nativecontract' command

* update

* update

Co-authored-by: Erik Zhang <erik@vcage.com>
Co-authored-by: Owen Zhang <38493437+superboyiii@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 23, 2020
1 parent 3c3409c commit c1dc4c3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions neo-cli/CLI/MainService.Native.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Neo.ConsoleService;
using Neo.SmartContract.Native;
using System;
using System.Linq;

namespace Neo.CLI
{
partial class MainService
{
/// <summary>
/// Process "list nativecontract" command
/// </summary>
[ConsoleCommand("list nativecontract", Category = "Native Contract")]
private void OnListNativeContract()
{
NativeContract.Contracts.ToList().ForEach(p => Console.WriteLine("\t" + p.Name + "\t" + p.Hash));
}
}
}

0 comments on commit c1dc4c3

Please sign in to comment.