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

docs(dr): Add DR about empty assetSelector validator #1774

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rafaelmag110
Copy link
Contributor

WHAT

Adds decision record about adding a validator to block contract definitions with empty asset selector.

WHY

Part of #1773. Please refer to that issue for more details.

@rafaelmag110 rafaelmag110 added the documentation Improvements or additions to documentation label Jan 30, 2025
Copy link
Contributor

@lgblaumeiser lgblaumeiser left a comment

Choose a reason for hiding this comment

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

I support this idea

Copy link
Contributor

@bmg13 bmg13 left a comment

Choose a reason for hiding this comment

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

just left a minor suggestion

Comment on lines +28 to +29
`ContractDefinitionValidator` except it should fail the validation in case the creation/update of a contract
definition introduces an empty `assetSelector` properties.
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: I know is indicated in the Decision, but I think this could help here as well

Suggested change
`ContractDefinitionValidator` except it should fail the validation in case the creation/update of a contract
definition introduces an empty `assetSelector` properties.
`ContractDefinitionValidator` except it should fail the validation in case the creation/update of a contract
definition introduces an empty `assetSelector` properties and the mentioned new toggle is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Open
Development

Successfully merging this pull request may close these issues.

3 participants