core: optimize contractCallEx

Provide script hash upon script load.
This commit is contained in:
Evgenii Stratonikov 2020-06-11 10:32:55 +03:00
parent 61edc8705e
commit 55ab7535be
2 changed files with 10 additions and 1 deletions

View file

@ -442,7 +442,7 @@ func contractCallExInternal(ic *interop.Context, v *vm.VM, h []byte, method stac
return errors.New("disallowed method call")
}
}
v.LoadScript(cs.Script)
v.LoadScriptWithHash(cs.Script, u)
v.Estack().PushVal(args)
v.Estack().PushVal(method)
return nil