Trait zksync_vm2_interface::GlobalStateInterface

source ·
pub trait GlobalStateInterface: StateInterface {
    // Required method
    fn get_storage(&mut self, address: H160, slot: U256) -> U256;
}
Expand description

State interface with access to global state like storage.

Required Methods§

source

fn get_storage(&mut self, address: H160, slot: U256) -> U256

Gets value of the specified storage slot.

Object Safety§

This trait is not object safe.

Implementors§