Skip to content
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

Invalid string. Length must be a multiple of 4 #293

Closed
sajshuai opened this issue Dec 19, 2023 · 4 comments
Closed

Invalid string. Length must be a multiple of 4 #293

sajshuai opened this issue Dec 19, 2023 · 4 comments

Comments

@sajshuai
Copy link

use sendTokens and result get this error:
Error: Invalid string. Length must be a multiple of 4 at getLens (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/base64-js/index.js:26:11) at Object.toByteArray (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/base64-js/index.js:55:14) at fromBase64 (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/@injectivelabs/sdk-ts/node_modules/@cosmjs/encoding/build/base64.js:36:21) at decodeAttribute (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/@injectivelabs/sdk-ts/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:43:40) at Array.map (<anonymous>) at decodeAttributes (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/@injectivelabs/sdk-ts/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:48:53) at decodeEvent (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/@injectivelabs/sdk-ts/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:53:40) at Array.map (<anonymous>) at decodeEvents (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/@injectivelabs/sdk-ts/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:58:49) at decodeTxData (/Users/suanjie/Documents/Projects/NodeJS/Cosmos/injmint/node_modules/@injectivelabs/sdk-ts/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:66:31)

@sajshuai
Copy link
Author

in mintscan can see transaction is success

@bangjelkoski
Copy link
Collaborator

You are passing an invalid string, as it states in the error, probably a Uint8Array or Base64 instead of Hex. This issue is unrelated to injective-ts, closing.

@sajshuai
Copy link
Author

sajshuai commented Dec 19, 2023

cosmos/cosmos-sdk#11997
tendermint version problem

@zkvm
Copy link

zkvm commented Dec 19, 2023

cosmos/cosmos-sdk#11997 tendermint version problem

how to fix this? ser

@bangjelkoski bangjelkoski closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants