foundry_cheatcodes::test::expect

Static DUMMY_CALL_OUTPUT

Source
static DUMMY_CALL_OUTPUT: Bytes
Expand description

For some cheatcodes we may internally change the status of the call, i.e. in expectRevert. Solidity will see a successful call and attempt to decode the return data. Therefore, we need to populate the return with dummy bytes so the decode doesn’t fail.

8192 bytes was arbitrarily chosen because it is long enough for return values up to 256 words in size.