Skip to content

Commit

Permalink
feat: make wasm permissioned (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 authored Feb 13, 2024
1 parent 014cdcf commit 6fdfce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/upgrades/v3/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fdfce1

Please sign in to comment.