rpc/server: fix ineffassign warning

This commit is contained in:
Roman Khimov 2021-04-08 15:52:57 +03:00
parent d3ea720afb
commit 973ed8c1f6

View file

@ -915,6 +915,9 @@ func (s *Server) getProof(ps request.Params) (interface{}, *response.Error) {
}
skey := makeStorageKey(cs.ID, key)
proof, err := s.chain.GetStateModule().GetStateProof(root, skey)
if err != nil {
return nil, response.NewInternalServerError("failed to get proof", err)
}
return &result.ProofWithKey{
Key: skey,
Proof: proof,