Merge pull request #116 from gavofyork/gav

Fixes for marek's shooting from the hip.
This commit is contained in:
Marek Kotewicz 2016-01-15 00:11:04 +01:00
commit c24883efc8

View File

@ -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
}
}