Skip to content

Make modifiers call boolean functions #1179

Description

@come-maiz

Most of our modifiers just add a require statement before the modified function is called.

For these cases, the modifier should be named like onlyCondition, for example, onlyOwner. This modifier should call a function that returns a boolean named like isCondition, for example, isOwner.

Metadata

Metadata

Assignees

Labels

breaking changeChanges that break backwards compatibility of the public API.contractsSmart contract code.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions