pcaversaccio / createx

Factory smart contract to make easier and safer usage of the `CREATE` and `CREATE2` EVM opcodes as well as of `CREATE3`-based (i.e. without an initcode factor) contract creations.

Home Page:https://createx.rocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

♻️ Use String Numbers for `assert` Statements

pcaversaccio opened this issue · comments

Fixes #14 (comment). Example:

assertEq(newContract, computedAddress, "100");
assertNotEq(newContract, zeroAddress, "200");
assertNotEq(newContract.code.length, 0, "300");
assertEq(newContract.balance, 0, "400");
assertEq(ERC20Mock(computedAddress).name(), arg1, "500");
assertEq(ERC20Mock(computedAddress).symbol(), arg2, "600");
assertEq(ERC20Mock(computedAddress).balanceOf(arg3), arg4, "700");