From 08b58da107210e477100067dfbf7ef1a0db8a2b1 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 15 Jan 2016 00:09:56 +0100 Subject: [PATCH] Fixes for marek's shooting from the hip. --- src/executive.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/executive.rs b/src/executive.rs index 23af492d2..a73180518 100644 --- a/src/executive.rs +++ b/src/executive.rs @@ -294,16 +294,14 @@ impl<'a> Executive<'a> { fn revert_if_needed(&mut self, result: &evm::Result, substate: &mut Substate, backup: State) { // TODO: handle other evm::Errors same as OutOfGas once they are implemented - match &result { + match result { &Err(evm::Error::OutOfGas) => { substate.out_of_gas = true; self.state.revert(backup); }, &Err(evm::Error::Internal) => (), &Ok(_) => () - } - result } }