-
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
[Bug]: code using main branch cannot send transactions using cli command #18122
Comments
Hi, is Can you try to list the keys? Can you verify that it uses the right home? (If not it is the same issue as here: #17822, having a fix incoming soon). |
The account exists in the keyring-test directory
|
In addition, for the same operation, there is no problem with tag v0.47.5, only the main branch has problems. |
Thank your for checking, I'll have a look 👍 |
bank send works for me on main. I tried node0 with a the address you sent and it work fine for me as well. im unable to reproduce your error |
Well, I just used the main branch (commit id is bb34c42) and it still doesn’t work. These are all the operations I did in the cosmos-sdk directory (I am on macos, the bold part is the command). ➜ cosmos-sdk git:(main) date
In addition, for the same operation, there is no problem with tag v0.47.5 ➜ cosmos-sdk git:(main) git checkout v0.47.5
➜ build git:(simd) ./simd tx bank send node0 cosmos1gfg9ucc7rrzc207y9qfmf58erftzf8z8ww5lr7 1stake --home ./nodes/node0/simd --keyring-backend test --chain-id simulation-app -y |
I, personally, can reproduce, looking into it as we speak. |
That's right. I think you probably haven't read the --home flag. When I use the default home, the main branch is no problem ➜ build git:(simd) ./simd tx bank send my_validator cosmos1lh6pmahlkytz7lmrs25a42j6kxlmztyt204kyq 1stake --keyring-backend test --chain-id simulation-app -y |
By the way, using --dry-run for simulation testing will not work either, fox exapmle: simd tx bank send node0 cosmos1gfg9ucc7rrzc207y9qfmf58erftzf8z8ww5lr7 1stake --keyring-backend test --chain-id simulation-app --gas auto --fees 129550stake --home ./nodes/node0/simd --dry-run. @julienrbrt |
Im not in front of my laptop, but what message do you get after dry-run ? This issue will be fixed next week. |
The same problem occurred as above:invalid argument "node0" for "--0" flag: invalid account address or key name: decoding bech32 failed: invalid bech32 string length 5 |
I try to fix this problem but the cli has been basically refactored compared to the previous version v0.46.x, so I haven't found the problem after research for a long time. |
Yes, it is the same problem. Basically the keyring flags aren't working on main for AutoCLI commands. I know the reason, and I'll open a PR fixing it next week 👍 |
Looks like this issue hasn't been fixed yet? |
Yep yep. Other features on client/v2 got in first. This fix will come, nw. |
So how do you send transactions use cli command? |
For reference: #18506 (comment) |
Just +1'ing this issue. I ran into this error when going through the starter tutorial. If a fix is hard, could we even just add a note on the tutorial so we don't lose folks? |
The tutorial shouldn't use main, so that shouldn't be an issue. The fix isn't that hard, I am trying to make it with no wiring changes for chains, but that is harder. I'd rather include it with the next few refactor of client/v2, but I am definitely still on it. |
Is there an existing issue for this?
What happened?
First use the command
simd testnet init-files --v 1 --output-dir ./nodes --chain-id simulation-app --keyring-backend test
to initialize a test networkThen try to send a transfer transaction using the command
simd tx bank send node0 cosmos1lh6pmahlkytz7lmrs25a42j6kxlmztyt204kyq 1stake --home ./nodes/node0/simd --keyring-backend test --chain-id simulation-app -y
The following error occurred:
invalid argument "node0" for "--0" flag: invalid account address or key name: decoding bech32 failed: invalid bech32 string length 5
Cosmos SDK Version
main
How to reproduce?
No response
The text was updated successfully, but these errors were encountered: