Add a Shared Modifiers
Contract
#1028
Labels
effort: epic
Multi-stage task that may require multiple PRs.
priority: 2
We will do our best to deal with this.
type: test
Adding, updating, or removing tests.
work: complex
Probe-sense-respond. The relationship between cause and effect can only be perceived in retrospect.
After reviewing the PR #1022, I realized how many modifiers are declared multiple times.
For example, the
givenNotNull
modifier is declared 23 times in different files: https://app.warp.dev/block/6GAXDA0EH90tdp6jocyZ20IMO this is very redundant, so I suggest adding a common
Modifiers
contract in theshared
dir that can be inherited inIntegration_Test
.Also, aside from being redundant, this also makes refactoring and making changes to tests more difficult, resulting in higher maintenance costs.
wdyt @sablier-labs/solidity ?
The text was updated successfully, but these errors were encountered: