Skip to content

Commit

Permalink
update v3 upgrade handler for testnet (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 authored Feb 12, 2024
1 parent 6621ea7 commit 014cdcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/upgrades/v3/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 2 additions & 8 deletions app/upgrades/v3/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 014cdcf

Please sign in to comment.