Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Jul 12, 2023
1 parent 51c9a2e commit b1c4172
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/upgrades/v0/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (h HardForkUpgradeHandler) migrateGringotts(ctx sdk.Context, govKeeper *was
return fmt.Errorf("unknown chain ID: %s", h.TargetChainID)
}

// Note: Since we're using a GovPermissionKeeper, the caller is not used/required,
// since the authz policy will automatically allow the migration.
_, err := govKeeper.Migrate(ctx, contractAddr, sdk.AccAddress{}, newCodeID, msg)
if err != nil {
return fmt.Errorf("failed to execute wasm migration: %w", err)
Expand Down

0 comments on commit b1c4172

Please sign in to comment.