Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/libraries/Utils.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {TestCreate2Deployer} from "test/mock/TestCreate2Deployer.sol";
contract UtilsTest is Test {
using Utils for address[];

function test_getCreate2Address(uint256 _saltSeed) public {
function testFuzz_getCreate2Address(uint256 _saltSeed, bytes memory _initCode) public {
bytes32 salt = bytes32(uint256(_saltSeed));
bytes memory initCode = abi.encode(0x6080);
TestCreate2Deployer deployer = new TestCreate2Deployer();
address create2Address = Utils.getCreate2Address(salt, initCode, address(deployer));
assertEq(create2Address, deployer.deploy(0, salt, initCode));
_initCode = abi.encode(bytes.concat("0x6080"), _initCode);
address create2Address = Utils.getCreate2Address(salt, _initCode, address(deployer));
assertEq(create2Address, deployer.deploy(0, salt, _initCode));
}

function test_isFeatureEnabled() public {
Expand Down