mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
fix exhibit 48 - error message should match if statement (#580)
This commit is contained in:
parent
25abdd10b5
commit
890411b685
@ -64,7 +64,7 @@ func ValidAuctionInvariant(k Keeper) sdk.Invariant {
|
|||||||
currentTime := ctx.BlockTime()
|
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 !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) {
|
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
|
invalidAuction = a
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user