Skip to main content

berlin_load_account

Macro berlin_load_account 

Source
macro_rules! berlin_load_account {
    ($ecx:expr, $address:expr, $load_code:expr) => { ... };
}
Expand description

Mirrors revm’s berlin_load_account! macro. Loads account info with the cold-load-skip optimization: if remaining gas is less than the cold cost, skip the DB load and return OOG immediately. Charges both warm_storage_read_cost (which revm’s instruction table charges as static gas) and cold_account_additional_cost if cold.