pub static HARDHAT_CONSOLE_SELECTOR_PATCHES: LazyLock<HashMap<[u8; 4], [u8; 4]>>
Expand description
Maps all the hardhat/console.log
log selectors that use the legacy ABI (int
, uint
) to
their normalized counterparts (int256
, uint256
).
hardhat/console.log
logs its events manually, and in functions that accept integers they’re
encoded as abi.encodeWithSignature("log(int)", p0)
, which is not the canonical ABI encoding
for int
that Solidity and [sol!
] use.