rust: ExecutionResult::result() should have a gas parameter
@@ -80,8 +80,8 @@ impl ExecutionResult {
ExecutionResult::new(ffi::evmc_status_code::EVMC_FAILURE, 0, None)
}
- pub fn revert(_output: Option<&[u8]>) -> Self {
- ExecutionResult::new(ffi::evmc_status_code::EVMC_REVERT, 0, _output)
+ pub fn revert(_gas_left: i64, _output: Option<&[u8]>) -> Self {
+ ExecutionResult::new(ffi::evmc_status_code::EVMC_REVERT, _gas_left, _output)
}
pub fn success(_gas_left: i64, _output: Option<&[u8]>) -> Self {
