foundry_common::contracts

Constant CALL_PROTECTION_BYTECODE_PREFIX

Source
const CALL_PROTECTION_BYTECODE_PREFIX: [u8; 21];
Expand description

Libraries’ runtime code always starts with the following instruction: PUSH20 0x0000000000000000000000000000000000000000

See: https://docs.soliditylang.org/en/latest/contracts.html#call-protection-for-libraries