cast::revm::precompile::utilities

Function bool_to_bytes32

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.