// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
// SPDX-License-Identifier: Apache-2.0
use anyhow::{bail, Result};
use move_core_types::{
account_address::AccountAddress,
effects::{AccountChangeSet, ChangeSet, Op},
identifier::Identifier,
language_storage::{ModuleId, StructTag},
resolver::{ModuleResolver, MoveResolver, ResourceResolver},
};
use std::{
collections::{btree_map, BTreeMap},
fmt::Debug,
};
#[cfg(feature = "table-extension")]
use {
anyhow::Error,
move_core_types::gas_algebra::InternalGas,
move_table_extension::{TableChangeSet, TableHandle, TableOperation, TableResolver},
};
/// A dummy storage containing no modules or resources.
#[derive(Debug, Clone)]
pub struct BlankStorage;
impl BlankStorage {
pub fn new() -> Self {
Self
}
}
impl ModuleResolver for BlankStorage {
type Error = ();
fn get_module(&self, _module_id: &ModuleId) -> Result