From e57789b3d086d7171727af3760880065cbe075c8 Mon Sep 17 00:00:00 2001 From: Harish Marri Date: Tue, 13 Feb 2024 23:03:31 +0530 Subject: [PATCH] make wasm permissioned --- app/upgrades/v3/upgrades.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index 1a55682d..9c238e96 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -25,8 +25,8 @@ func CreateV3UpgradeHandler( } params := wasmtypes.DefaultParams() - // change this to AllowNoBody for mainnet - params.CodeUploadAccess = wasmtypes.AllowEverybody + // Permissioned cosmwasm + params.CodeUploadAccess = wasmtypes.AllowNobody params.InstantiateDefaultPermission = wasmtypes.AccessTypeEverybody if err := keepers.WasmKeeper.SetParams(ctx, params); err != nil { return nil, err