Skip to content

Commit

Permalink
support eth_call for past blocks with old runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Apr 24, 2024
1 parent 5d6bf0c commit ea9becf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/rpc/src/eth/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ where
let details = fee_details(gas_price, max_fee_per_gas, max_priority_fee_per_gas)?;
(
details.gas_price,
details.max_fee_per_gas,
// Old runtimes require max_fee_per_gas to be None for non transactional calls.
if details.max_fee_per_gas == Some(U256::zero()) { None } else { details.max_fee_per_gas },
details.max_priority_fee_per_gas,
)
};
Expand Down

0 comments on commit ea9becf

Please sign in to comment.