mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-01 13:49:13 +00:00
rpc: do not return error if account is not found for getunclaimed
call
Follow the reference behaviour.
This commit is contained in:
parent
580f1787b9
commit
233aa94bba
1 changed files with 1 additions and 1 deletions
|
@ -1397,7 +1397,7 @@ func (s *Server) getUnclaimed(ps request.Params) (interface{}, *response.Error)
|
|||
|
||||
acc := s.chain.GetAccountState(u)
|
||||
if acc == nil {
|
||||
return nil, response.NewInternalServerError("unknown account", nil)
|
||||
return &result.Unclaimed{}, nil
|
||||
}
|
||||
res, errRes := result.NewUnclaimed(acc, s.chain)
|
||||
if errRes != nil {
|
||||
|
|
Loading…
Reference in a new issue