Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typo): correct spelling mistakes #921

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions app/upgrades/v8/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ func upgradeTestnet(ctx sdk.Context, app *keepers.AppKeepers) error {
return err
}

migrationWFXToWPUNDIAI(ctx, app.EvmKeeper)
migrateWFXToWPUNDIAI(ctx, app.EvmKeeper)
migrateOracleDelegateAmount(ctx, app.CrosschainKeepers)

if err := migrationModulesData(ctx, app); err != nil {
if err := migrateModulesData(ctx, app); err != nil {
return err
}

Expand Down Expand Up @@ -131,9 +131,9 @@ func upgradeMainnet(
return fromVM, err
}

migrationWFXToWPUNDIAI(ctx, app.EvmKeeper)
migrateWFXToWPUNDIAI(ctx, app.EvmKeeper)

if err = migrationModulesData(ctx, app); err != nil {
if err = migrateModulesData(ctx, app); err != nil {
return fromVM, err
}

Expand All @@ -143,7 +143,7 @@ func upgradeMainnet(

store.RemoveStoreKeys(ctx, app.GetKey(stakingtypes.StoreKey), fxstakingv8.GetRemovedStoreKeys())

if err = migrationGovCustomParam(ctx, app.GovKeeper, app.GetKey(govtypes.StoreKey)); err != nil {
if err = migrateGovCustomParam(ctx, app.GovKeeper, app.GetKey(govtypes.StoreKey)); err != nil {
return fromVM, err
}

Expand Down Expand Up @@ -208,11 +208,11 @@ func upgradeMainnet(
return toVM, nil
}

func migrationModulesData(ctx sdk.Context, app *keepers.AppKeepers) error {
return migrationCrisisModule(ctx, app.CrisisKeeper)
func migrateModulesData(ctx sdk.Context, app *keepers.AppKeepers) error {
return migrateCrisisModule(ctx, app.CrisisKeeper)
}

func migrationCrisisModule(ctx sdk.Context, crisisKeeper *crisiskeeper.Keeper) error {
func migrateCrisisModule(ctx sdk.Context, crisisKeeper *crisiskeeper.Keeper) error {
constantFee, err := crisisKeeper.ConstantFee.Get(ctx)
if err != nil {
return err
Expand All @@ -228,7 +228,7 @@ func migrateEvmParams(ctx sdk.Context, evmKeeper *fxevmkeeper.Keeper) error {
return evmKeeper.SetParams(ctx, params)
}

func migrationGovCustomParam(ctx sdk.Context, keeper *fxgovkeeper.Keeper, storeKey *storetypes.KVStoreKey) error {
func migrateGovCustomParam(ctx sdk.Context, keeper *fxgovkeeper.Keeper, storeKey *storetypes.KVStoreKey) error {
// 1. delete fxParams key
store.RemoveStoreKeys(ctx, storeKey, fxgovv8.GetRemovedStoreKeys())

Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v8/wrap_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
testnetWFXAddress = common.HexToAddress("0x3452e23F9c4cC62c70B7ADAd699B264AF3549C19")
)

func migrationWFXToWPUNDIAI(ctx sdk.Context, evmKeeper *fxevmkeeper.Keeper) {
func migrateWFXToWPUNDIAI(ctx sdk.Context, evmKeeper *fxevmkeeper.Keeper) {
wfxAddr := GetWFXAddress(ctx.ChainID())

totalUpdateState := 0
Expand Down
Loading