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

Tendermint 34 adaptor attempting to base64 decode event attribute #1601

Open jmrossy opened 1 month ago

jmrossy commented 1 month ago

When attempting an IBC transfer from Neutron to Celestia, after the transfer is signed and sent by the wallet, the CosmJS Tendermint package attempts to base64 decode a string value that is not base 64, throwing an error. See this line here: https://github.com/cosmos/cosmjs/blob/main/packages/tendermint-rpc/src/tendermint34/adaptor/responses.ts#L117

In my case, a key value of acc_seq is what's being decoded:

Screenshot 2024-07-22 at 12 02 34 PM

I noticed that the Tendermint 37 adaptor does not attempt to decode the event key & value which makes we wonder if maybe the problem is that the wrong adaptor is being used?

Tested on version 0.31.3