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:
commit
53efb43ad2
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue