Macro revm::interpreter::sload

source ·
macro_rules! sload {
    ($interp:expr, $host:expr, $address:expr, $index:expr) => { ... };
}
Expand description

Performs an SLOAD on the target account and storage index.

If the slot could not be loaded, or if the gas cost could not be charged, the expanded code sets the instruction result and returns accordingly.

§Note

This macro charges gas.

§Returns

Expands to the value of the storage slot.