From 6fdfce1df2cda8db3f1bab817dc52b3974ab9e95 Mon Sep 17 00:00:00 2001 From: Marri Harish Date: Tue, 13 Feb 2024 23:21:47 +0530 Subject: [PATCH] feat: make wasm permissioned (#155) --- 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