From 1f94610c14edbc0228ee7836a62292a17383f6d8 Mon Sep 17 00:00:00 2001 From: MartinquaXD Date: Wed, 8 Jan 2025 21:26:57 +0000 Subject: [PATCH] Revert "execute `eth_estimateGas` and `eth_createAccessList` on latest block (#3220)" This reverts commit 672b30fadc703560fc3dab624f485eb4455dd3a4. --- crates/driver/src/infra/blockchain/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/driver/src/infra/blockchain/mod.rs b/crates/driver/src/infra/blockchain/mod.rs index 6b85a00b08..a43a037bfe 100644 --- a/crates/driver/src/infra/blockchain/mod.rs +++ b/crates/driver/src/infra/blockchain/mod.rs @@ -182,10 +182,7 @@ impl Ethereum { .transport() .execute( "eth_createAccessList", - vec![ - serde_json::to_value(&tx).unwrap(), - serde_json::Value::String("latest".into()), - ], + vec![serde_json::to_value(&tx).unwrap()], ) .await?; if let Some(err) = json.get("error") { @@ -210,7 +207,7 @@ impl Ethereum { gas_price: self.simulation_gas_price().await, ..Default::default() }, - Some(ethcontract::BlockNumber::Latest), + None, ) .await .map(Into::into)