fn query_wasm(&self, contract_addr: String, key: Binary) -> QuerierResult {
            if contract_addr != self.contract {
                SystemResult::Err(SystemError::NoSuchContract {
                    addr: contract_addr,
                })
            } else {
                let bin = self.storage.get(&key).unwrap_or_default();
                SystemResult::Ok(ContractResult::Ok(bin.into()))
            }
        }
// TODO: we should be able to add a custom wasm handler to MockQuerier from cosmwasm_std::mock
we should be able to add a custom wasm handler to MockQuerier from cosmwasm_std::mock
we should be able to add a custom wasm handler to MockQuerier from cosmwasm_std :: mock
fn query_wasm(&self, contract_addr: String, key: Binary) -> QuerierResult {
            if contract_addr != self.contract {
                SystemResult::Err(SystemError::NoSuchContract {
                    addr: contract_addr,
                })
            } else {
                let bin = self.storage.get(&key).unwrap_or_default();
                SystemResult::Ok(ContractResult::Ok(bin.into()))
            }
        }
fn query_wasm ( & self , contract_addr : String , key : Binary ) -> QuerierResult { if contract_addr != self . contract { SystemResult :: Err ( SystemError :: NoSuchContract { addr : contract_addr , } ) } else { let bin = self . storage . get ( & key ) . unwrap_or_default ( ) ; SystemResult :: Ok ( ContractResult :: Ok ( bin . into ( ) ) ) } }
TODO: we should be able to add a custom wasm handler to MockQuerier from cosmwasm_std::mock
TODO : we should be able to add a custom wasm handler to MockQuerier from cosmwasm_std :: mock
&self
contract_addr
String
key
Binary
&self
contract_addr
String
key
Binary