Skip to content

Commit

Permalink
docs: add geth reference for call fee check (#10970)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Sep 17, 2024
1 parent cd10cbf commit 9760319
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/rpc/rpc-eth-types/src/revm_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ impl CallFees {
RpcInvalidTransactionError::TipAboveFeeCap.into(),
)
}
// ref <https://github.com/ethereum/go-ethereum/blob/0dd173a727dd2d2409b8e401b22e85d20c25b71f/internal/ethapi/transaction_args.go#L446-L446>
Ok(min(
max_fee,
block_base_fee.checked_add(max_priority_fee_per_gas).ok_or_else(|| {
Expand Down

0 comments on commit 9760319

Please sign in to comment.