CosmWasm / CosmWasm/cosmwasm

Avoid generic parameter in `CosmosMsg<C>`

Open
#2,249 4 comments 0 reactions 1 assignee View on GitHub

@chipshort is already working on this.

Since Jun 10, 2025.

  • #2475 by @kulikthebird — closed without merging
Breaking (contracts)
Dominant language
Rust
Stars
1.1k
Forks
419
Avg merge
3d 11h
Merged PRs (30d)
2

Description

We still need to support the custom message feature, but having this as a generic is quite annoying for users because it has to be carried through the whole code.

In our meeting, switching to dynamic dispatch with erased_serde / typetag was proposed.

We should make sure that downstream users are not affected by the fact that this makes CosmosMsg no longer Send + Sync and that the custom message type is not necessarily Sized anymore.
This could probably be looked at for something like MultiTest.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.