Merge pull request #2466 from nspcc-dev/rules-fixes

Rules scope fixes
This commit is contained in:
Roman Khimov 2022-05-06 11:09:39 +03:00 committed by GitHub
commit 75d06d18c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -1675,7 +1675,7 @@ func (s *Server) getInvokeScriptParams(reqParams request.Params) (*transaction.T
if len(reqParams) > 1 {
signers, witnesses, err := reqParams[1].GetSignersWithWitnesses()
if err != nil {
return nil, false, response.ErrInvalidParams
return nil, false, response.WrapErrorWithData(response.ErrInvalidParams, err)
}
tx.Signers = signers
tx.Scripts = witnesses
@ -1684,7 +1684,7 @@ func (s *Server) getInvokeScriptParams(reqParams request.Params) (*transaction.T
if len(reqParams) > 2 {
verbose, err = reqParams[2].GetBoolean()
if err != nil {
return nil, false, response.ErrInvalidParams
return nil, false, response.WrapErrorWithData(response.ErrInvalidParams, err)
}
}
if len(tx.Signers) == 0 {