anvil_zksync_core/node/inner/
storage.rsuse async_trait::async_trait;
use zksync_multivm::interface::storage::ReadStorage;
use zksync_types::{StorageKey, StorageValue, H256};
#[async_trait]
pub trait ReadStorageDyn: ReadStorage + Send + Sync {
fn dyn_cloned(&self) -> Box<dyn ReadStorageDyn>;
async fn read_value_alt(&self, key: &StorageKey) -> anyhow::Result<StorageValue>;
async fn load_factory_dep_alt(&self, hash: H256) -> anyhow::Result<Option<Vec<u8>>>;
}
impl Clone for Box<dyn ReadStorageDyn> {
fn clone(&self) -> Self {
self.dyn_cloned()
}
}