-
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
Delegations REST endpoint require name and password when generate_only is passed #3020
Comments
Thanks @joe-bowman! I'll look into this ⚡️ I also doubt this is particular to this specific endpoint, but I'll double check anyway. |
Ok, took a further look into it. It seems this is the only endpoint that uses the In addition, I find the handler to be very confusing in that it creates and broadcasts multiple txs (multiple messages). This is super confusing. In addition, if you provide I think we need to finally refactor this entire handler (as the godoc states) once and for all. @fedekunze would you want to tackle this or should I? |
Indeed! I'll look into reviewing the PR #2997 and making sure it covers this case. |
I think this would also be the case for https://cosmos.network/rpc/#/ICS20/post_bank_accounts__address__transfers At least from the doc you could use generate_only |
@joe-bowman can you test the latest |
Summary of Bug
When POSTing to the
/stake/delegators/{delegatorAddr}/delegations
endpoint, with the query string?generate_only=true
, I am returned an error:name required but not specified
and adding a (dummy) name returns:
password required but not specified
and adding a password then causes (unsurprisingly) the name and password to be checked against the local keystore.
This shouldn't happen for generate_only transactions.
Steps to Reproduce
Version tested: 0.27.0
ref: #2191
For Admin Use
The text was updated successfully, but these errors were encountered: