-
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
Unit of min-self-delegation
#9386
Comments
The min self delegation passed to the CLI and thus the message should be in the base unit. e.g. for the hub, it's uatom, i.e. 10^6. I think we just need to update the docs. |
Cool. Thanks for your quick reply.
|
Thanks @youngjoon-lee for reporting the issue! The document that you are referring to lives in the Gaia repository if you would like to submit a fix there. I think adding denom requirements at the client level is something we would still like to do so a pull request here would be welcome as well. |
@shahankhatch can you take a look at this from the gaia side? |
@youngjoon-lee Are you still interested in submitting a pull request to make the denom required? |
Thank you for your reply. Sure! I will submit a PR this week regards to the CLI option, and another PR for Gaia documents to the Gaia repo. |
Awesome! I think a fix for the documentation has already been submitted but updating the CLI is all yours. |
Hey @youngjoon-lee! I just wanted to check in and see if you are still planning on tackling the CLI change. |
@ryanchristo Yes. Sorry for late. I will open a PR this week. |
No worries! I was just checking. Thanks for letting us know. |
Summary of Bug
From the create-validator guide, it seems that the unit of
min-self-delegation
isatom
(notuatom
).But, the
ValidatorBasic()
was implemented as if its unit isuatom
.cosmos-sdk/x/staking/types/msg.go
Line 139 in 45265b1
If the unit should be
uatom
, I would suggest to force users to put a denominator to the--min-self-delegation
option as discussed in #3594.gaiad tx staking create-validator --min-self-delegation="1uatom"
If not, the
ValidatorBasic()
should be fixed as below, I guess.If you guys confirm which way is correct, I can open a PR (if it's ok).
Version
Cosmos SDK v0.42.4
Steps to Reproduce
No step to reproduce. I just read source codes and found this issue.
For Admin Use
The text was updated successfully, but these errors were encountered: