cosmos-sdk/x/staking/client/rest
likhita-809 da87ab0d36
fix: Staking delegations should return empty list instead of rpc error when no records found (#9423)
* return empty list instead of rpc error when no records found for staking delegations

* fix grpc query DelegatorDelegations tests

* remove response code tests for staking delegations

* fix failing tests

* change staking delegations response code to 200 in grpc test

* add staking delegations response code tests to TestQueryDelegatorDelegationsGRPC

* add address without delegations testcase

* add changes to grpc query tests of delegatorDelegations

* remove getRequest unused function from x/staking/client/rest/grpc_query_test.go

* minor fixes

* add testcases for request with no delegations

* address review comments

* add changelog

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-06-01 15:17:44 +00:00
..
grpc_query_test.go fix: Staking delegations should return empty list instead of rpc error when no records found (#9423) 2021-06-01 15:17:44 +00:00
query.go Remove ServiceMsgs from ADR-031 (#9139) 2021-04-30 11:00:47 +00:00
rest_test.go Audit through legacy endpoints to find breaking changes (#8037) 2020-12-03 23:33:32 +00:00
rest.go Rosetta API implementation (#7695) 2021-01-21 09:33:02 +00:00
tx.go Rename *codec.Codec to *codec.LegacyAmino (#6991) 2020-08-10 19:41:21 +00:00
utils.go Move QueryTx functions to x/auth/tx (#8734) 2021-03-01 15:57:28 +00:00