forge::revm::precompile

Function u64_to_address

pub const fn u64_to_address(x: u64) -> Address
Expand description

Const function for making an address by concatenating the bytes from two given numbers.

Note that 32 + 128 = 160 = 20 bytes (the length of an address). This function is used as a convenience for specifying the addresses of the various precompiles.