cast::revm::precompile::utilities

Function bool_to_b256

pub const fn bool_to_b256(value: bool) -> &'static FixedBytes<32>
Expand description

Converts a boolean to a left-padded B256 value.

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