CosmWasm / CosmWasm/wasmd

[Reg 0.4x -> 0.50] MsgStoreCode with instantiate_permission set not working with Amino JSON since Cosmos SDK 0.50 (wasmd 0.50)

Open
#1,863 2 comments 0 reactions 1 assignee Claimed by @pinosu View on GitHub
Dominant language
Go
Stars
416
Forks
538
PR merge metrics
No merged PRs in 30d

Description

After a series of changes, we got Amino JSON bach to pre-Cosmos SDK 0.50 behavior for the majority of CosmWasm message types. However, there is one case left we currently know about.

MsgStoreCode works when `instantiate_permission` is unset. When it is set to the following value, it fails:

```ts
const instantiatePermission: AccessConfig = {
permission: AccessType.ACCESS_TYPE_EVERYBODY,
address: "",
addresses: [],
};
const { codeId, checksum, originalSize, compressedSize } = await client.upload(
alice.address0,
wasm,
defaultUploadFee,
"test memo",
instantiatePermission,
);
```

The reason might be the JSON serialization of the empty list. But this is just an unevaluated guess.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.