mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 03:06:16 +00:00
vm: switch from .avm to .nef
This commit is contained in:
parent
c7746da023
commit
b387deaa05
3 changed files with 18 additions and 13 deletions
|
@ -67,12 +67,12 @@ var commands = []*ishell.Cmd{
|
|||
Func: handleXStack,
|
||||
},
|
||||
{
|
||||
Name: "loadavm",
|
||||
Help: "Load an avm script into the VM",
|
||||
LongHelp: `Usage: loadavm <file>
|
||||
Name: "loadnef",
|
||||
Help: "Load a NEF-consistent script into the VM",
|
||||
LongHelp: `Usage: loadnef <file>
|
||||
<file> is mandatory parameter, example:
|
||||
> load /path/to/script.avm`,
|
||||
Func: handleLoadAVM,
|
||||
> load /path/to/script.nef`,
|
||||
Func: handleLoadNEF,
|
||||
},
|
||||
{
|
||||
Name: "loadbase64",
|
||||
|
@ -241,7 +241,7 @@ func handleXStack(c *ishell.Context) {
|
|||
c.Println(v.Stack(c.Cmd.Name))
|
||||
}
|
||||
|
||||
func handleLoadAVM(c *ishell.Context) {
|
||||
func handleLoadNEF(c *ishell.Context) {
|
||||
v := getVMFromContext(c)
|
||||
if len(c.Args) < 1 {
|
||||
c.Err(errors.New("missing parameter <file>"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue