We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5c76d8 + 1600f6a commit 2a87d4dCopy full SHA for 2a87d4d
app/app.go
@@ -704,7 +704,15 @@ func NewKitoolsApp(
704
// Add CosmWasm
705
ctx.Logger().Info("start to setup Wasm...")
706
params := app.WasmKeeper.GetParams(ctx)
707
- params.CodeUploadAccess = wasmtypes.AllowNobody
+
708
+ uploadAddress := "ki12u4jtcczpg2m3nt50muh3srte7zed77qsfyng4"
709
710
+ if address.Bech32MainPrefix == "tki" {
711
+ uploadAddress = "tki1vexd57shjr2rax74ym5g8nqwq7ve04n5gz0kaj"
712
+ }
713
714
+ params.CodeUploadAccess = wasmtypes.AccessConfig{Permission: wasmtypes.AccessTypeOnlyAddress, Address: uploadAddress}
715
716
app.WasmKeeper.SetParams(ctx, params)
717
718
// Update max gas and max bytes params
0 commit comments