pub fn into_result(mut self) -> ::std::result::Result<RuntimeResult, EnclaveError> {
        self.result.used_gas = self.gas_counter;
        self.result.state_delta = {
            // The delta is always generated after a deployment.
            // The delta is generated after an execution only if there is a state change.
            if (&self.pre_execution_state != &self.post_execution_state) || (self.pre_execution_state.is_initial()){
                Some(ContractState::generate_delta_and_update_state(&self.pre_execution_state, &mut self.post_execution_state)?)
            } else{
                None
            }
        };
        self.result.updated_state = self.post_execution_state;
        Ok(self.result.clone())
    }
/// Destroy the runtime, returning currently recorded result of the execution
Destroy the runtime, returning currently recorded result of the execution
Destroy the runtime returning currently recorded result of the execution
pub fn into_result(mut self) -> ::std::result::Result<RuntimeResult, EnclaveError> {
        self.result.used_gas = self.gas_counter;
        self.result.state_delta = {
            // The delta is always generated after a deployment.
            // The delta is generated after an execution only if there is a state change.
            if (&self.pre_execution_state != &self.post_execution_state) || (self.pre_execution_state.is_initial()){
                Some(ContractState::generate_delta_and_update_state(&self.pre_execution_state, &mut self.post_execution_state)?)
            } else{
                None
            }
        };
        self.result.updated_state = self.post_execution_state;
        Ok(self.result.clone())
    }
pub fn into_result ( mut self ) -> :: std :: result :: Result < RuntimeResult , EnclaveError > { self . result . used_gas = self . gas_counter ; self . result . state_delta = { // The delta is always generated after a deployment. // The delta is generated after an execution only if there is a state change. if ( & self . pre_execution_state != & self . post_execution_state ) || ( self . pre_execution_state . is_initial ( ) ) { Some ( ContractState :: generate_delta_and_update_state ( & self . pre_execution_state , & mut self . post_execution_state ) ? ) } else { None } } ; self . result . updated_state = self . post_execution_state ; Ok ( self . result . clone ( ) ) }
Destroy the runtime, returning currently recorded result of the execution
Destroy the runtime returning currently recorded result of the execution
mut self
mut self