Merge pull request #1179 from nspcc-dev/fix-get-script-container-for-test-invocations

rpc: set transaction's script for test invocation
This commit is contained in:
Roman Khimov 2020-07-14 18:45:01 +03:00 committed by GitHub
commit 53efb43ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -833,6 +833,7 @@ func (s *Server) invokeFunction(reqParams request.Params) (interface{}, *respons
if err != nil { if err != nil {
return nil, response.NewInternalServerError("can't create invocation script", err) return nil, response.NewInternalServerError("can't create invocation script", err)
} }
tx.Script = script
return s.runScriptInVM(script, tx), nil return s.runScriptInVM(script, tx), nil
} }
@ -855,6 +856,7 @@ func (s *Server) invokescript(reqParams request.Params) (interface{}, *response.
} }
tx.Cosigners = cosigners tx.Cosigners = cosigners
} }
tx.Script = script
return s.runScriptInVM(script, tx), nil return s.runScriptInVM(script, tx), nil
} }