revm_precompile::utilities

Function 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.