mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
vm: return NOP as current instruction for just loaded VM
Before: NEO-GO-VM > loadgo h.go READY: loaded 16 instructions NEO-GO-VM > ip instruction pointer at -1 (PUSH0) After: NEO-GO-VM > loadgo h.go READY: loaded 16 instructions NEO-GO-VM > ip instruction pointer at -1 (NOP) I think NOP is a little less scary.
This commit is contained in:
parent
e872b6b421
commit
5bd666b786
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func (c *Context) LenInstr() int {
|
|||
// CurrInstr returns the current instruction and opcode.
|
||||
func (c *Context) CurrInstr() (int, Instruction) {
|
||||
if c.ip < 0 {
|
||||
return c.ip, Instruction(0x00)
|
||||
return c.ip, NOP
|
||||
}
|
||||
return c.ip, Instruction(c.prog[c.ip])
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue