From a9b9109a158163b5a36a5ba22ff7b01d2434d2cb Mon Sep 17 00:00:00 2001 From: Trinity Date: Fri, 8 Nov 2024 15:00:12 +0700 Subject: [PATCH] Change permissionless to permissioned in evm params --- app/upgrades/v2/upgrades.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/upgrades/v2/upgrades.go b/app/upgrades/v2/upgrades.go index 014cf05b..af55c35f 100644 --- a/app/upgrades/v2/upgrades.go +++ b/app/upgrades/v2/upgrades.go @@ -128,8 +128,15 @@ func CreateUpgradeHandler( } evmParams := evmtypes.DefaultParams() - evmParams.ActiveStaticPrecompiles = []string{ - evmtypes.StakingPrecompileAddress, + evmParams.AccessControl = evmtypes.AccessControl{ + Create: evmtypes.AccessControlType{ + AccessType: evmtypes.AccessTypePermissioned, + AccessControlList: evmtypes.DefaultCreateAllowlistAddresses, + }, + Call: evmtypes.AccessControlType{ + AccessType: evmtypes.AccessTypePermissioned, + AccessControlList: evmtypes.DefaultCallAllowlistAddresses, + }, } err = evmKeeper.SetParams(sdkCtx, evmParams) if err != nil {