From 0d710150e4a573f8dde32274f49f2c99c1217791 Mon Sep 17 00:00:00 2001 From: Dreamer Date: Tue, 9 Apr 2024 17:41:46 +0800 Subject: [PATCH 1/3] update evm params --- app/upgrades/v300/upgrades.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/upgrades/v300/upgrades.go b/app/upgrades/v300/upgrades.go index 6659f048f..736542743 100644 --- a/app/upgrades/v300/upgrades.go +++ b/app/upgrades/v300/upgrades.go @@ -30,6 +30,9 @@ func upgradeHandlerConstructor( box upgrades.Toolbox, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + if err := mergeEVM(ctx, box); err != nil { + return nil, err + } // initialize ICS27 module initICAModule(ctx, m, fromVM) @@ -60,3 +63,11 @@ func mergeLSModule(ctx sdk.Context, box upgrades.Toolbox) error { storeKey := box.GetKey(stakingtypes.StoreKey) return migrateStore(ctx, storeKey, box.AppCodec, box.StakingKeeper) } + +func mergeEVM(ctx sdk.Context, box upgrades.Toolbox) error { + ctx.Logger().Info("start to run evm module migrations...") + + params := box.EvmKeeper.GetParams(ctx) + params.AllowUnprotectedTxs = true + return box.EvmKeeper.SetParams(ctx, params) +} From ae21d63f386cc1de8067ffa3a04fb81a97d6cc8a Mon Sep 17 00:00:00 2001 From: Dreamer Date: Tue, 9 Apr 2024 17:44:49 +0800 Subject: [PATCH 2/3] add changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb45604ea..f1d2a6637 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ * (IRISHub) [\#2914](https://github.com/irisnet/irishub/pull/2914) Improve unit test. * (IRISHub) [\#2918](https://github.com/irisnet/irishub/pull/2918) Adjusting the parameters of the ica module. * (IRISHub) [\#2919](https://github.com/irisnet/irishub/pull/2919) Adjusting gov config. +* (IRISHub) [\#2924](https://github.com/irisnet/irishub/pull/2924) Update evm params. * (IRISMod) [\#385](https://github.com/irisnet/irismod/pull/385) Bump cosmos-sdk to v0.47.9-ics-lsm. ## 2.1.0 From 198320b484b4e247a3f12b66d81174b84b5a85b7 Mon Sep 17 00:00:00 2001 From: Dreamer Date: Tue, 9 Apr 2024 18:17:54 +0800 Subject: [PATCH 3/3] update docs --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1d2a6637..dbf2c4407 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ * (IRISHub) [\#2914](https://github.com/irisnet/irishub/pull/2914) Improve unit test. * (IRISHub) [\#2918](https://github.com/irisnet/irishub/pull/2918) Adjusting the parameters of the ica module. * (IRISHub) [\#2919](https://github.com/irisnet/irishub/pull/2919) Adjusting gov config. -* (IRISHub) [\#2924](https://github.com/irisnet/irishub/pull/2924) Update evm params. +* (IRISHub) [\#2924](https://github.com/irisnet/irishub/pull/2924) Update evm `AllowUnprotectedTxs` params. * (IRISMod) [\#385](https://github.com/irisnet/irismod/pull/385) Bump cosmos-sdk to v0.47.9-ics-lsm. ## 2.1.0