core: specify require call flags in interop description
Related #1026, #1027, #1028, #1031.
This commit is contained in:
parent
bda94c74c3
commit
0dd00a49f5
7 changed files with 48 additions and 31 deletions
|
@ -915,7 +915,7 @@ func (s *Server) invokescript(reqParams request.Params) (interface{}, *response.
|
|||
func (s *Server) runScriptInVM(script []byte) *result.Invoke {
|
||||
vm := s.chain.GetTestVM()
|
||||
vm.SetGasLimit(s.config.MaxGasInvoke)
|
||||
vm.LoadScript(script)
|
||||
vm.LoadScriptWithFlags(script, smartcontract.All)
|
||||
_ = vm.Run()
|
||||
result := &result.Invoke{
|
||||
State: vm.State(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue