core: optimize contractCallEx
Provide script hash upon script load.
This commit is contained in:
parent
61edc8705e
commit
55ab7535be
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue