Skip to content

Commit

Permalink
Fix fee_detail for the older runtimes (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest authored Jul 22, 2024
1 parent f566bc6 commit cb1c8a7
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 @@ -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(),
}),
Expand Down

0 comments on commit cb1c8a7

Please sign in to comment.