pub struct MockState {
pub code_ids: HashMap<String, u64>,
pub addresses: HashMap<String, Addr>,
}
Fields§
§code_ids: HashMap<String, u64>
§addresses: HashMap<String, Addr>
Implementations§
Trait Implementations§
source§impl StateInterface for MockState
impl StateInterface for MockState
source§fn get_code_id(&self, contract_id: &str) -> Result<u64, BootError>
fn get_code_id(&self, contract_id: &str) -> Result<u64, BootError>
Get the locally-saved version of the contract’s version on this network
source§fn set_code_id(&mut self, contract_id: &str, code_id: u64)
fn set_code_id(&mut self, contract_id: &str, code_id: u64)
Set the locally-saved version of the contract’s latest version on this network