Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #116 from gavofyork/gav
Browse files Browse the repository at this point in the history
Fixes for marek's shooting from the hip.
  • Loading branch information
debris committed Jan 14, 2016
2 parents 4ab3441 + 08b58da commit c24883e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/executive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit c24883e

Please sign in to comment.