Skip to content

Commit 2a87d4d

Browse files
authored
Merge pull request #39 from KiFoundation/upload-code-addresses
Added allowed upload address
2 parents f5c76d8 + 1600f6a commit 2a87d4d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/app.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,15 @@ func NewKitoolsApp(
704704
// Add CosmWasm
705705
ctx.Logger().Info("start to setup Wasm...")
706706
params := app.WasmKeeper.GetParams(ctx)
707-
params.CodeUploadAccess = wasmtypes.AllowNobody
707+
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+
708716
app.WasmKeeper.SetParams(ctx, params)
709717

710718
// Update max gas and max bytes params

0 commit comments

Comments
 (0)