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

ruleset weight special case of 1 #229

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Conversation

mejango
Copy link
Contributor

@mejango mejango commented Jan 7, 2025

Description

ruleset.weight == 1 means inherit from previous weight. all other values are interpreted normally.

this makes it clearer to configure a ruleset with no issuance (common case)... just set weight to 0.

Limitations & risks

Are there any trade-off or new vulnarbility surface based on theses changes?

Check-list

  • Tests are covering the new feature
  • Code is natspec'd
  • Code is linted and formatted
  • I have run the test locally (and they pass)
  • I have rebased to the latest main commit (and tests still pass)

Interactions

These changes will impact the following contracts:

  • Directly:

  • Indirectly:

@mejango
Copy link
Contributor Author

mejango commented Jan 7, 2025

@simplemachine92 this one needs tests to make sure the cases where ruleset.weight == 0 and ruleset.weight == 1 are covered. for some reason this change didnt break tests, it should have.

@mejango mejango merged commit 734cd71 into main Jan 13, 2025
3 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.

2 participants