-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CosmJS cannot parse Tx results in v0.46: Invalid string. Length must be a multiple of 4 #11997
Comments
It fails because it uses a tendermint The relevant one here is the change in the tendermint/tendermint#6408 When |
Closing for now. Let's see if it happens again when |
Thanks @julienrbrt !! |
Thanks for the ping and checking this issue. See cosmos/cosmjs#1154 (comment) for the state of things in CosmJS. |
Hey @webmaster128, I am getting this when using v0.47 (TM v0.37). Is there a TM v0.37 client coming? |
Hey @julienrbrt, so far I am not aware of any Tendermint change. We have a working TM 0.34 client and a private unused TM 0.35 client. Could you open a ticket in CosmJS, please? |
Sure, opened cosmos/cosmjs#1353! |
Same here when using web3auth and Osmosis. the transaction goes through but the result is invalid. I'm trying to figure out how to replicate this in a simple example. This happens only when using web3auth, it works fine when signing with Keplr but the message is exactly the same. I'll see what else i can find :/ |
I ended up upgrading again and it worked fine for me, not sure what the intermittent nested node_module errors were but they are gone.
Edit: Some people are reporting they are still getting the string error post-upgrades.
|
very interesting, seems intermittent on my end too. Error was gone yesterday after removing node_modules and reinstalling but the issues started to occur again today. Now I'm suspecting the rpc node is returning different responses. I'll start logging them.
|
This payload when executing a message with using @cosmos-kit/keplr works:
Base64 decoded looks like:
This does not work using cosmos-kit-web3auth
base64 decoded
It's looks a bit different at the end, but I'm having a hard debugging locally. I've been trying to update all dependencies of packages locally but no luck. |
Hi, you will have more luck posting your issue in the cosmjs repo or https://github.com/orgs/cosmos/discussions |
Hey there
|
Both cosmwasm and @cosmjs/launchpad are not maintained anymore. They use a Tendemint 0.34 client but for the encoding change you need a Tendermint 0.37 client. More recent versions of CosmJS do auto-detection to get you the right one. |
May I know what are the required changes made you people to solve the issue and getting the response properly |
Summary of Bug
The response of any Tx cannot be parsed by CosmJS in
v0.46.0-beta2
. This worked fine in v0.45.x and below. Not sure if this is a bug or due to a breaking change.After signing and broadcasting the following Tx using CosmJS:
The
result
throws an error after the Tx has successfully executed:Version
v0.46.0-beta2
Steps to Reproduce
Get a response from any Tx using CosmJS. You can clone this repo and `npm run experiment-local to try it out for yourself.
For Admin Use
The text was updated successfully, but these errors were encountered: