From 1a67bc52db193db9f3b4a16ce4c4f385015dbb5b Mon Sep 17 00:00:00 2001 From: zjb0807 Date: Tue, 19 Oct 2021 12:24:48 +0800 Subject: [PATCH] fix estimate-gas (#501) --- client/rpc/src/eth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rpc/src/eth.rs b/client/rpc/src/eth.rs index cf31b3260..4dc36fd13 100644 --- a/client/rpc/src/eth.rs +++ b/client/rpc/src/eth.rs @@ -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)), } };