Static evm_adapters::sputnik::cheatcodes::HARDHAT_CONSOLE_SELECTOR_PATCHES [−][src]
pub static HARDHAT_CONSOLE_SELECTOR_PATCHES: Lazy<HashMap<Selector, Selector>>
Expand description
This contains a map with all the hardhat/console.log
log selectors that use uint
or int
as key and the selector of the call with uint256
,
This is a bit terrible but a workaround for the differing selectors used by hardhat and the call
bindings which abigen!
creates. hardhat/console.log
logs its events in functions that accept
uint
manually as abi.encodeWithSignature("log(int)", p0)
, but abigen!
uses uint256
for
its call bindings (ConsoleCalls
) as generated by solc.