cartesi / rollups-contracts

Smart Contracts for Cartesi Rollups
https://cartesi.github.io/rollups-contracts/
Apache License 2.0
18 stars 38 forks source link

Use qualified access to events in tests #187

Closed guidanoli closed 8 months ago

guidanoli commented 8 months ago

📚 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.