-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(contracts): add advanced fuzz and invariant testing with Foundry…
… for FreeForAllExcubia
- Loading branch information
Showing
3 changed files
with
173 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/contracts/contracts/test/wrappers/FreeForAllExcubiaTestWrapper.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.27; | ||
|
||
import {FreeForAllExcubia} from "../../src/extensions/FreeForAllExcubia.sol"; | ||
|
||
contract FreeForAllExcubiaTestWrapper is FreeForAllExcubia { | ||
function exposed_check(address passerby, bytes calldata data) public view { | ||
_check(passerby, data); | ||
} | ||
|
||
function exposed_pass(address passerby, bytes calldata data) public { | ||
_pass(passerby, data); | ||
} | ||
} |