Skip to content
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

fix: (cli) community pool spend proposal #12957

Closed
wants to merge 3 commits into from
Closed

Conversation

atheeshp
Copy link
Contributor

@atheeshp atheeshp commented Aug 18, 2022

Description

Closes: #12900


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@github-actions github-actions bot added C:CLI C:x/distribution distribution module related labels Aug 18, 2022
@atheeshp atheeshp changed the title fix (cli): community pool spend proposal fix: (x/distr) community pool spend proposal Aug 18, 2022
@atheeshp atheeshp changed the title fix: (x/distr) community pool spend proposal fix: (cli) community pool spend proposal Aug 18, 2022
@codecov
Copy link

codecov bot commented Aug 18, 2022

Codecov Report

Merging #12957 (3586861) into main (4fe7797) will decrease coverage by 0.29%.
The diff coverage is 61.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #12957      +/-   ##
==========================================
- Coverage   55.87%   55.58%   -0.30%     
==========================================
  Files         646      652       +6     
  Lines       54895    55041     +146     
==========================================
- Hits        30675    30592      -83     
- Misses      21762    21980     +218     
- Partials     2458     2469      +11     
Impacted Files Coverage Δ
baseapp/abci.go 64.09% <0.00%> (-0.33%) ⬇️
client/flags/flags.go 19.35% <0.00%> (-0.32%) ⬇️
client/rpc/status.go 66.66% <ø> (ø)
client/utils.go 34.92% <0.00%> (ø)
server/rosetta/client_online.go 1.35% <0.00%> (ø)
server/swagger.go 0.00% <0.00%> (ø)
simapp/app.go 82.66% <0.00%> (+3.55%) ⬆️
testutil/list.go 0.00% <0.00%> (ø)
types/result.go 76.74% <ø> (ø)
x/auth/tx/query.go 0.00% <ø> (ø)
... and 54 more

@atheeshp atheeshp marked this pull request as ready for review August 18, 2022 11:14
@atheeshp atheeshp requested a review from a team as a code owner August 18, 2022 11:14
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I completely forgot this is being removed in #12852

Comment on lines +317 to +319
if amount.IsZero() {
return fmt.Errorf("invalid amount: %s", amount)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check this inside ValidateBasic ?

@atheeshp
Copy link
Contributor Author

atheeshp commented Aug 24, 2022

closing this PR since it's not needed, ref: #12852

@atheeshp atheeshp closed this Aug 24, 2022
@tac0turtle tac0turtle deleted the ap/cli-community-pool branch April 6, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:CLI C:x/distribution distribution module related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

possible to create a community pool spend goverance proposal with empty amount
3 participants