Skip to content

Commit

Permalink
nil checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Aug 9, 2024
1 parent 3ae08bb commit fc8c7fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,11 @@ func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.Respo
fmt.Printf("HACKHACK: v1 application should upgrade to v2 at hard-coded upgrade height %v\n", upgradeHeight)
got.ConsensusParamUpdates.Version.AppVersion = 2
}
fmt.Printf("EndBlocker returning app version %v\n", got.ConsensusParamUpdates.Version.AppVersion)
if got.ConsensusParamUpdates == nil || got.ConsensusParamUpdates.Version == nil {
fmt.Printf("EndBlocker returning nil consensus param updates\n")
} else {
fmt.Printf("EndBlocker returning app version %v\n", got.ConsensusParamUpdates.Version.AppVersion)
}
return got
}

Expand Down

0 comments on commit fc8c7fa

Please sign in to comment.