From e8c64e2b65580b7a823a5408a6175e85b6dc9ba4 Mon Sep 17 00:00:00 2001 From: bear Date: Mon, 22 Jul 2024 16:14:55 +0800 Subject: [PATCH] Fix fee_detail for the older runtimes --- client/rpc/src/eth/execute.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/rpc/src/eth/execute.rs b/client/rpc/src/eth/execute.rs index c4a4abf525..7e76197acf 100644 --- a/client/rpc/src/eth/execute.rs +++ b/client/rpc/src/eth/execute.rs @@ -1044,7 +1044,8 @@ fn fee_details( // Default to EIP-1559 transaction _ => Ok(FeeDetails { gas_price: None, - max_fee_per_gas: Some(U256::zero()), + // Old runtimes require max_fee_per_gas to be None for non transactional calls. + max_fee_per_gas: None, max_priority_fee_per_gas: Some(U256::zero()), fee_cap: U256::zero(), }),