From 652923dcdf63f2aa8e02bc69421a7858ae752338 Mon Sep 17 00:00:00 2001 From: GNaD Date: Sat, 22 Jul 2023 15:22:41 +0700 Subject: [PATCH 1/2] permission wasmd --- app/upgrades/v4/upgrade.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/upgrades/v4/upgrade.go b/app/upgrades/v4/upgrade.go index 29a8e6217..fb4b474b1 100644 --- a/app/upgrades/v4/upgrade.go +++ b/app/upgrades/v4/upgrade.go @@ -1,6 +1,7 @@ package v4 import ( + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" @@ -20,6 +21,12 @@ func CreateUpgradeHandler( transmiddlewareParams := tfmdtypes.DefaultParams() keepers.TransferMiddlewareKeeper.SetParams(ctx, transmiddlewareParams) + // Add params for wasmd + var wasmdParams wasmtypes.Params + wasmdParams.CodeUploadAccess = wasmtypes.AccessConfig{Permission: wasmtypes.AccessTypeNobody} + wasmdParams.InstantiateDefaultPermission = wasmtypes.AccessTypeNobody + keepers.WasmKeeper.SetParams(ctx, wasmdParams) + return mm.RunMigrations(ctx, configurator, vm) } } From a4cdcf9880acf07c9b218d38278ff6235e52bbac Mon Sep 17 00:00:00 2001 From: vuong Date: Mon, 24 Jul 2023 18:14:32 +0700 Subject: [PATCH 2/2] decode wasm client --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 761b401f8..54dbcc69f 100644 --- a/go.mod +++ b/go.mod @@ -186,7 +186,7 @@ replace ( // lock wasmvm so we do not break the grandpa contract github.com/CosmWasm/wasmvm => github.com/CosmWasm/wasmvm v1.2.1 // ibc-go with wasm client - github.com/cosmos/ibc-go/v7 => github.com/notional-labs/ibc-go/v7 v7.0.1-wasm-client + github.com/cosmos/ibc-go/v7 => github.com/notional-labs/ibc-go/v7 v7.0.1-wasm-client.0.20230724095244-3e77ff01133a github.com/strangelove-ventures/packet-forward-middleware/v7 => github.com/notional-labs/packet-forward-middleware/v7 v7.0.0-20230719072346-7acf9377aac3 diff --git a/go.sum b/go.sum index 7d76def83..f4e3db330 100644 --- a/go.sum +++ b/go.sum @@ -770,8 +770,8 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/notional-labs/alliance v1.0.1-0.20230523105704-66dba9499c01 h1:koCsoc1NGpU8TntXwM/s7Z/whsKNDVPiLim35HLBAzA= github.com/notional-labs/alliance v1.0.1-0.20230523105704-66dba9499c01/go.mod h1:GFQ8TsXDMTpu7kif0Dwddz6rxazy0ZJQHfN38ZmAodI= -github.com/notional-labs/ibc-go/v7 v7.0.1-wasm-client h1:5EF/ea5DLD0QTiNCOysxe4+dQ5qCqon4+frCm+2JCYI= -github.com/notional-labs/ibc-go/v7 v7.0.1-wasm-client/go.mod h1:ISHo/Qitjtvj2svGmttaZv03zVXmS+uqvUyF9kFqlI0= +github.com/notional-labs/ibc-go/v7 v7.0.1-wasm-client.0.20230724095244-3e77ff01133a h1:1OlwO/MzbpBkoVZzYSstUzaJ7MMXJBV7TBFCKmwgrSU= +github.com/notional-labs/ibc-go/v7 v7.0.1-wasm-client.0.20230724095244-3e77ff01133a/go.mod h1:ISHo/Qitjtvj2svGmttaZv03zVXmS+uqvUyF9kFqlI0= github.com/notional-labs/packet-forward-middleware/v7 v7.0.0-20230719072346-7acf9377aac3 h1:LBK82QivQaiycoKZPGDV3fJL1KTWy8AAoerEGUno/60= github.com/notional-labs/packet-forward-middleware/v7 v7.0.0-20230719072346-7acf9377aac3/go.mod h1:L7nnQ9rEoYLyulE9M/zhcBcHDWqMMSQn8cf4yY5A+T8= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=