fix exhibit 48 - error message should match if statement (#580)

This commit is contained in:
Nick DeLuca 2020-06-11 14:33:36 -05:00 committed by GitHub
parent 25abdd10b5
commit 890411b685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}