pub fn generate_instance(
        &mut self,
    ) -> TestingResult<Instance<MockApi, MockStorage, MockQuerier>> {
        let backend = self
            .backend
            .take()
            .ok_or_else(|| TestingError::ContractError(ERR_GENERATE_INSTANCE_TWICE.to_string()))?;
        let instance = Instance::from_module(
            &self.module,
            backend,
            self.options.gas_limit,
            self.options.print_debug,
        )?;
        Ok(instance)
    }
/// generate instance for testing
///
/// once this is called, result instance needs to be recycled by Contract::recycle_instance to generate new instance next time.
generate instance for testing
once this is called, result instance needs to be recycled by Contract::recycle_instance to generate new instance next time.
generate instance for testing once this is called result instance needs to be recycled by Contract :: recycle_instance to generate new instance next time .
pub fn generate_instance(
        &mut self,
    ) -> TestingResult<Instance<MockApi, MockStorage, MockQuerier>> {
        let backend = self
            .backend
            .take()
            .ok_or_else(|| TestingError::ContractError(ERR_GENERATE_INSTANCE_TWICE.to_string()))?;
        let instance = Instance::from_module(
            &self.module,
            backend,
            self.options.gas_limit,
            self.options.print_debug,
        )?;
        Ok(instance)
    }
pub fn generate_instance ( & mut self , ) -> TestingResult < Instance < MockApi , MockStorage , MockQuerier > > { let backend = self . backend . take ( ) . ok_or_else ( | | TestingError :: ContractError ( ERR_GENERATE_INSTANCE_TWICE . to_string ( ) ) ) ? ; let instance = Instance :: from_module ( & self . module , backend , self . options . gas_limit , self . options . print_debug , ) ? ; Ok ( instance ) }
generate instance for testing
once this is called, result instance needs to be recycled by Contract::recycle_instance to generate new instance next time.
generate instance for testing once this is called result instance needs to be recycled by Contract :: recycle_instance to generate new instance next time .
&mut self