Skip to content

Commit

Permalink
fix estimate-gas (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb0807 authored Oct 19, 2021
1 parent 8b34fb3 commit 1a67bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/rpc/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ where

match exit_reason {
ExitReason::Succeed(_) => Ok(Some(used_gas)),
ExitReason::Revert(_) | ExitReason::Error(evm::ExitError::OutOfGas) => Ok(None),
ExitReason::Error(evm::ExitError::OutOfGas) => Ok(None),
other => error_on_execution_failure(&other, &data).map(|()| Some(used_gas)),
}
};
Expand Down

0 comments on commit 1a67bc5

Please sign in to comment.