Skip to content

Commit

Permalink
Update migrations.go
Browse files Browse the repository at this point in the history
  • Loading branch information
toml01 authored Sep 26, 2023
1 parent 2ccac20 commit 9527257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/compute/internal/keeper/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (m Migrator) Migrate4to5(ctx sdk.Context) error {

// Pre v1.11 contracts don't have a history, so we'll add an initial history entry for them.
// This is required for the hardcode admin feature to work.
// This will also prevent an inconstant state between pre v1.11 and post v1.11 contracts.
// This will also prevent an inconsistent state between pre v1.11 and post v1.11 contracts.
contractHistory := m.keeper.GetContractHistory(ctx, contractAddress)
if len(contractHistory) == 0 {
historyEntry := contractInfo.InitialHistory(nil)
Expand Down

0 comments on commit 9527257

Please sign in to comment.