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

Add ConwayDRepIncorrectRefund and tests for GovCert #4162

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Mar 5, 2024

Description

This PR adds the ConwayDRepIncorrectRefund predicate failure to GOVCERT. This failure happens when trying to unregister a DRep with invalid Coin in the cert. I also added tests for other GOVCERT predicate failures.

resolves #4135
resolves #4136

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@Soupstraw Soupstraw marked this pull request as ready for review March 5, 2024 14:17
@Soupstraw Soupstraw force-pushed the jj/incorrect-refund branch 2 times, most recently from a3877da to aac516b Compare March 5, 2024 14:22
@Soupstraw Soupstraw force-pushed the jj/incorrect-refund branch 2 times, most recently from 0d2e8ef to a69b758 Compare March 5, 2024 14:31
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Perfect!

@Soupstraw Soupstraw force-pushed the jj/incorrect-refund branch from a69b758 to 3d03ee0 Compare March 5, 2024 15:15
@Soupstraw Soupstraw changed the title Add ConwayDRepIncorrectRefund Add ConwayDRepIncorrectRefund and tests for GovCert Mar 5, 2024
@Soupstraw Soupstraw force-pushed the jj/incorrect-refund branch 5 times, most recently from cfdf2d0 to 56cbd9f Compare March 5, 2024 15:41
Copy link
Contributor

@Lucsanszky Lucsanszky left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@Soupstraw Soupstraw force-pushed the jj/incorrect-refund branch 3 times, most recently from 5b8b73c to 6d55f8f Compare March 6, 2024 10:38
@lehins lehins force-pushed the jj/incorrect-refund branch from 6d55f8f to de149fd Compare March 6, 2024 14:26
@Soupstraw Soupstraw enabled auto-merge (rebase) March 6, 2024 14:48
@Soupstraw Soupstraw merged commit 64dc8e5 into master Mar 6, 2024
15 of 17 checks passed
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.

Imp test that GOVCERT rule predicate checks work as expected Add new predicate check to GOVCERT rule
3 participants