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

Allow object to be empty in listgovproposals and listgovproposalvotes #1749

Merged
merged 3 commits into from
Feb 10, 2023

Conversation

shohamc1
Copy link
Contributor

@shohamc1 shohamc1 commented Feb 9, 2023

What kind of PR is this?:

/kind

What this PR does / why we need it:

When an empty object was passed to listgovproposals and listgovproposalvotes, the RPC would incorrectly error out with a JSON error. This PR allows users to pass in empty objects without throwing an error.

Fixes Jellyfish test failures.

@defichain-bot
Copy link
Member

@shohamc1: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

  • /kind feature
  • /kind fix
  • /kind chore
  • /kind docs
  • /kind refactor
  • /kind dependencies
Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

@shohamc1
Copy link
Contributor Author

shohamc1 commented Feb 9, 2023

/kind fix

@shohamc1 shohamc1 marked this pull request as ready for review February 9, 2023 06:00
@shohamc1 shohamc1 changed the title Allow args to be empty in listgovproposals Allow object to be empty in listgovproposals and listgovproposalvotes Feb 9, 2023
@Bushstar Bushstar mentioned this pull request Feb 9, 2023
8 tasks
@Bushstar Bushstar merged commit 0407e88 into master Feb 10, 2023
@Bushstar Bushstar deleted the fix-proposals-args branch February 10, 2023 07:26
@Bushstar Bushstar mentioned this pull request Feb 10, 2023
30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants