Closed pcaversaccio closed 11 months ago
This PR adds the tests for all CREATE2 functions in CreateX; namely:
CREATE2
CreateX
function deployCreate2(bytes32,bytes) payable returns (address)
function deployCreate2(bytes) payable returns (address)
function deployCreate2AndInit(bytes32,bytes,bytes,tuple(uint256,uint256),address) payable returns (address)
function deployCreate2AndInit(bytes,bytes,tuple(uint256,uint256)) payable returns (address)
function deployCreate2AndInit(bytes,bytes,tuple(uint256,uint256),address) payable returns (address)
function deployCreate2AndInit(bytes32,bytes,bytes,tuple(uint256,uint256)) payable returns (address)
function deployCreate2Clone(bytes32,address,bytes) payable returns (address)
function deployCreate2Clone(address,bytes) payable returns (address)
function computeCreate2Address(bytes32,bytes32) view returns (address)
function computeCreate2Address(bytes32,bytes32,address) pure returns (address)
Further changes include:
statefulFuzz
computeCreate2Address
_guard
deployCreate2Clone
assert
@typechain/ethers-v6
@typechain/hardhat
ethers
hardhat
@typescript-eslint/eslint-plugin
@typescript-eslint/parser
.github/workflows/checks.yml
CREATE
CREATE3
vm.assume
CreateX._generateSalt.t.sol
π Changelog
This PR adds the tests for all
CREATE2
functions inCreateX
; namely:function deployCreate2(bytes32,bytes) payable returns (address)
function deployCreate2(bytes) payable returns (address)
function deployCreate2AndInit(bytes32,bytes,bytes,tuple(uint256,uint256),address) payable returns (address)
function deployCreate2AndInit(bytes,bytes,tuple(uint256,uint256)) payable returns (address)
function deployCreate2AndInit(bytes,bytes,tuple(uint256,uint256),address) payable returns (address)
function deployCreate2AndInit(bytes32,bytes,bytes,tuple(uint256,uint256)) payable returns (address)
function deployCreate2Clone(bytes32,address,bytes) payable returns (address)
function deployCreate2Clone(address,bytes) payable returns (address)
function computeCreate2Address(bytes32,bytes32) view returns (address)
function computeCreate2Address(bytes32,bytes32,address) pure returns (address)
Further changes include:
statefulFuzz
test;computeCreate2Address
inCreateX
;_guard
todeployCreate2Clone
inCreateX
;CreateX
;assert
statements (closes #15);@typechain/ethers-v6
,@typechain/hardhat
,ethers
,hardhat
,@typescript-eslint/eslint-plugin
, and@typescript-eslint/parser
;.github/workflows/checks.yml
by removing the whitelisted links since the repository is now public;CREATE
andCREATE2
tests (laterCREATE3
as well);vm.assume
for simplicity inCreateX._generateSalt.t.sol
;PR Checklist
πΆ Cute Animal Picture