From 890411b6855b3f791414b26a2fefc381bbb8bae0 Mon Sep 17 00:00:00 2001 From: Nick DeLuca Date: Thu, 11 Jun 2020 14:33:36 -0500 Subject: [PATCH] fix exhibit 48 - error message should match if statement (#580) --- x/auction/keeper/invariants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/auction/keeper/invariants.go b/x/auction/keeper/invariants.go index 05eee629..a3fe7dae 100644 --- a/x/auction/keeper/invariants.go +++ b/x/auction/keeper/invariants.go @@ -64,7 +64,7 @@ func ValidAuctionInvariant(k Keeper) sdk.Invariant { currentTime := ctx.BlockTime() if !currentTime.Equal(time.Time{}) { // this avoids a simulator bug where app.InitGenesis is called with blockTime=0 instead of the correct time if a.GetEndTime().Before(currentTime) { - validationErr = fmt.Errorf("endTime after current block time (%s)", currentTime) + validationErr = fmt.Errorf("endTime before current block time (%s)", currentTime) invalidAuction = a return true }