Skip to content

fix: populate MPFPG from tx request in 1559 transactions #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ where
pub fn estimate_gas(mut self) -> Result<(crate::EstimationResult, Self), EvmErrored<Db, Insp>> {
use tracing::{debug, enabled};

if let Some(est) = crate::trevm_try!(self.estimate_gas_simple_transfer(), self) {
if let Some(est) = trevm_try!(self.estimate_gas_simple_transfer(), self) {
return Ok((crate::EstimationResult::basic_transfer_success(est), self));
}

Expand Down
5 changes: 3 additions & 2 deletions src/fill/alloy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,12 @@ impl Tx for alloy::rpc::types::TransactionRequest {
// intend that to mean "as much as possible"
*tx_type = self.transaction_type.unwrap_or(TxType::Eip1559 as u8);
*gas_limit = self.gas.unwrap_or(u64::MAX);
*gas_price = self.gas_price.unwrap_or_default();
*gas_price =
self.gas_price.unwrap_or_default().max(self.max_fee_per_gas.unwrap_or_default());
*kind = self.to.unwrap_or_default();
*value = self.value.unwrap_or_default();
*data = self.input.input().cloned().unwrap_or_default();
*nonce = self.nonce.unwrap_or_default(); // TODO: IS THIS CORRECT?
*nonce = self.nonce.unwrap_or_default();
*chain_id = self.chain_id;
*access_list = self.access_list.clone().unwrap_or_default();
*gas_priority_fee = self.max_priority_fee_per_gas;
Expand Down
Loading