Function revm::precompile::utilities::bool_to_bytes32

source ยท
pub const fn bool_to_bytes32(value: bool) -> Bytes
Expand description

Converts a boolean to a left-padded 32-byte Bytes value.

This is optimized to not allocate at runtime by using 2 static arrays.