diff --git a/app/upgrades/v3/constants.go b/app/upgrades/v3/constants.go index 6886a33f..df18516a 100644 --- a/app/upgrades/v3/constants.go +++ b/app/upgrades/v3/constants.go @@ -6,7 +6,7 @@ import ( store "github.com/cosmos/cosmos-sdk/store/types" ) -const UpgradeName = "v3-dev" +const UpgradeName = "v3" var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index 6b305f65..1a55682d 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -25,14 +25,8 @@ func CreateV3UpgradeHandler( } params := wasmtypes.DefaultParams() - params.CodeUploadAccess = wasmtypes.AccessConfig{ - Permission: wasmtypes.AccessTypeAnyOfAddresses, - Addresses: []string{ - // test addrs - "omniflix18fw35sd99ksgcylrxqz555hk2ffnp9dx3gzv9a", - "omniflix1fua9pv84yfqp7gjpv8vmsrygqa9prtsm3y95vm", - }, - } + // change this to AllowNoBody for mainnet + params.CodeUploadAccess = wasmtypes.AllowEverybody params.InstantiateDefaultPermission = wasmtypes.AccessTypeEverybody if err := keepers.WasmKeeper.SetParams(ctx, params); err != nil { return nil, err