Solidity v0.8.21 introduced a language feature which allows contracts to access events from other contracts and interfaces. This enables test contracts to test for event emission without having to define the errors again in their scope.
✔️ Solution
Use this language feature in test contracts to reduce code duplication.
These contracts should have their Solidity version set to v0.8.22 or later, because of an important bug fix.
This depends on #173.
📚 Context
Solidity v0.8.21 introduced a language feature which allows contracts to access events from other contracts and interfaces. This enables test contracts to test for event emission without having to define the errors again in their scope.
✔️ Solution
Use this language feature in test contracts to reduce code duplication. These contracts should have their Solidity version set to v0.8.22 or later, because of an important bug fix. This depends on #173.