fix(x/evidence): return error in keeper (#16245)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
co-authored by
Aleksandr Bezobchuk
parent
2843261161
commit
df834c58d1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user