Skip to content

Commit

Permalink
support eth_call for past blocks with old runtimes (polkadot-evm#1404)
Browse files Browse the repository at this point in the history
* support eth_call for past blocks with old runtimes

* rustfmt
  • Loading branch information
librelois committed Apr 28, 2024
1 parent 76c2ab1 commit e7fccf9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/rpc/src/eth/execute.rs
Expand Up @@ -100,7 +100,12 @@ 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 e7fccf9

Please sign in to comment.