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.
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.
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)
andlog(string,int256)
inherited fromconsole2
, which were added in https://github.com/foundry-rs/forge-std/pull/253.