cosmos / cosmjs

The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.
https://cosmos.github.io/cosmjs/
Apache License 2.0
645 stars 330 forks source link

`cosmwasm-stargate` does not support parsing of `tx` data for the latest `wasmd`. #1452

Closed 99Kies closed 1 year ago

99Kies commented 1 year ago

image

https://github.com/cosmos/cosmjs/tree/main/packages/cosmwasm-stargate https://github.com/CosmWasm/wasmd

Unique-Divine commented 1 year ago

The latest version of wasmd uses Cosmos SDK v0.47 and thus cometbft v0.37 (replacement for the Tendermint dependency).

Based on the error above, you may be using the Tendermint34Client. I recommend trying out the Tendermint37Client instead. It passes the e2e tests for cosmjs, which run against wasmd, so it should fix the problem.

@99Kies

webmaster128 commented 1 year ago

The high level clients have Tendermint 0.34/0.37 auto-detection in CosmJS 0.31+ which solve the issue.

See also https://medium.com/cosmwasm/cosmos-sdk-0-47-and-wasmd-0-40-support-for-cosmjs-86365385cd88