fix(x/evidence): return error in keeper (#16245)

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
Facundo Medica
2023-05-23 07:30:46 +00:00
committed by GitHub
co-authored by Aleksandr Bezobchuk
parent 2843261161
commit df834c58d1
5 changed files with 14 additions and 7 deletions
@@ -231,7 +231,8 @@ func TestHandleDoubleSign(t *testing.T) {
tstaking.Undelegate(sdk.AccAddress(operatorAddr), operatorAddr, totalBond, true)
// query evidence from store
evidences := f.evidenceKeeper.GetAllEvidence(ctx)
evidences, err := f.evidenceKeeper.GetAllEvidence(ctx)
assert.NilError(t, err)
assert.Assert(t, len(evidences) == 1)
}