Skip to content

Commit

Permalink
Revert "support eth_call for past blocks with old runtimes (#1404)"
Browse files Browse the repository at this point in the history
This reverts commit e7fccf9.
  • Loading branch information
boundless-forest authored Apr 30, 2024
1 parent e7fccf9 commit 9b6c84a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions client/rpc/src/eth/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ where
let details = fee_details(gas_price, max_fee_per_gas, max_priority_fee_per_gas)?;
(
details.gas_price,
// 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_fee_per_gas,
details.max_priority_fee_per_gas,
)
};
Expand Down

0 comments on commit 9b6c84a

Please sign in to comment.