foundry-rs / forge-std

Forge Standard Library is a collection of helpful contracts for use with forge and foundry. It leverages forge's cheatcodes to make writing tests easier and faster, while improving the UX of cheatcodes. For more in-depth usage examples checkout the tests.
Apache License 2.0
850 stars 335 forks source link

feat(console): use correct signatures #606

Closed DaniPopes closed 2 months ago

DaniPopes commented 2 months ago

Both Hardhat and Foundry have supported the correct console.log internal signatures for a few years now, and Hardhat is currently looking to remove support for the incorrect signatures entirely. See https://github.com/NomicFoundation/hardhat/pull/5764.

Note that our console.sol has 2 additional functions for log(int256) and log(string,int256) inherited from console2, which were added in https://github.com/foundry-rs/forge-std/pull/253.