vm: move Jump method to the Context
Because it's only relevant for execution context itself.
This commit is contained in:
parent
8c704a49b5
commit
a577d40de9
8 changed files with 22 additions and 23 deletions
|
@ -2188,7 +2188,7 @@ func (bc *Blockchain) InitVerificationVM(v *vm.VM, getContract func(util.Uint160
|
|||
initMD := cs.Manifest.ABI.GetMethod(manifest.MethodInit, 0)
|
||||
v.LoadScriptWithHash(cs.NEF.Script, hash, callflag.ReadOnly)
|
||||
v.Context().NEF = &cs.NEF
|
||||
v.Jump(v.Context(), md.Offset)
|
||||
v.Context().Jump(md.Offset)
|
||||
|
||||
if initMD != nil {
|
||||
v.Call(v.Context(), initMD.Offset)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue