-
Notifications
You must be signed in to change notification settings - Fork 46
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
Wrong behaviour of --allows-comments flag #386
Comments
@bragaz I think a better way to fix this would be to rename the command something like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
I was testing contract serialization and found out some weird behaviour while creating a post.
If someone create a post from CLI using the
--allows-comments
without append the=
to it will result in two different results depending on if the post has a message or not.Error: accepts between 1 and 2 arg(s), received 3
true
according to its default behaviour.Steps to reproduce
Result 1)
desmos tx posts create "4e188d9c17150037d5199bbdb91ae1eb2a78a15aca04cb35530cccb81494b36e" "mess" --from leo --chain-id <chai-id> --keyring-backend <keyring-type> --attachment "https://example.com/attachment1,text/plain,desmos1ulmv2dyc8zjmhk9zlsq4ajpudwc8zjfm82aysr" --allows-comments false
Result 2)
desmos tx posts create "4e188d9c17150037d5199bbdb91ae1eb2a78a15aca04cb35530cccb81494b36e" --from <key-name> --chain-id <chain-id> --keyring-backend <keyring-type> --attachment "https://example.com/attachment1,text/plain,desmos1ulmv2dyc8zjmhk9zlsq4ajpudwc8zjfm82aysr" --allows-comments false --chain-id <chain-id> --keyring-backend <keyring-type>
desmos query posts post <post-id>
Expected behavior
--allows-comments
set the correct value totrue
orfalse
.If it's not possibile to use it without =, then we need to specify it inside docs.
The text was updated successfully, but these errors were encountered: