Skip to main content

GlobalStateInterface

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§