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.
https://createx.rocks
GNU Affero General Public License v3.0
304 stars 18 forks source link

♻️ Use String Numbers for `assert` Statements #15

Closed pcaversaccio closed 11 months ago

pcaversaccio commented 1 year ago

Fixes https://github.com/pcaversaccio/createx/pull/14#discussion_r1339081839. 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");