-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
--dry-run flag returns an error #13202
Comments
That error output doesn't seem right...you should be providing a |
Ahh yes, you're right. That makes sense. Now the question is, why is the @facundomedica any chance you have the ability to look into this? |
Have it ever worked in prior version? In v0.46 we've updated the flags to explain that dry-run cannot access the keyring: https://github.com/cosmos/cosmos-sdk/blob/main/client/flags/flags.go#L118 |
Yes, |
Fixed by #13673 |
Summary of Bug
In order to estimate a transaction gas usage, I'm using the
--dry-run
flag. This flag leads to creating thekeyring.BackendMemory
Keyring in theclientCtx
. In-memory Keyring returns an error in theclient.GetFromFields
call because it can't get an account info 🤷♂️. That being said, I can't simulate a transaction.May be I'm doing smth wrong and there is an other method of Tx simulation without an actual Keyring (os / file).
Version
v0.45.8
Steps to Reproduce
Input:
Output:
The text was updated successfully, but these errors were encountered: