Skip to content

Commit f96f691

Browse files
authored
fix: commit missing fixes for authority check (#1227)
1 parent 1559cb4 commit f96f691

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

crates/provider/src/alloy/evm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// You should have received a copy of the GNU General Public License along with Rundler.
1212
// If not, see https://www.gnu.org/licenses/.
1313

14-
use alloy_primitives::{Address, Bytes, TxHash, B256, U256};
14+
use alloy_primitives::{Address, Bytes, TxHash, B256, U256, U64};
1515
use alloy_provider::{ext::DebugApi, network::TransactionBuilder};
1616
use alloy_rpc_types_eth::{
1717
state::{AccountOverride, StateOverride},
@@ -212,6 +212,7 @@ where
212212
.inner
213213
.client()
214214
.request("eth_getTransactionCount", (address, "pending"))
215+
.map_resp(|count: U64| count.to::<u64>())
215216
.await?)
216217
}
217218

crates/sim/src/precheck.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -527,11 +527,6 @@ where
527527
self.provider.get_pending_transaction_count(sender),
528528
self.provider.get_transaction_count(sender),
529529
)?;
530-
tracing::info!(
531-
"pending_count: {}, transaction_count: {}",
532-
pending_count,
533-
transaction_count
534-
);
535530
Ok(Some(pending_count - transaction_count))
536531
}
537532
}

docs/cli.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ See [chain spec](./architecture/chain_spec.md) for a detailed description of cha
115115
- env: *PROVIDER_RATE_LIMIT_RETRY_ENABLED*
116116
- `--provider_consistency_retry_enabled`: Enable retries on block consistency errors - with default backoff settings (default: `false`)
117117
- env: *PROVIDER_CONSISTENCY_RETRY_ENABLED*
118+
- `--eip7702_authority_pending_check_enabled`: Enable checking for EIP-7702 authority pending transaction errors (default: `false`)
119+
- env: *EIP7702_AUTHORITY_PENDING_CHECK_ENABLED*
120+
- NOTE: This uses the `NODE_RPC` and thus is only viable on networks with P2P mempools. L2s with centralized sequencers will not work.
118121

119122
## Metrics Options
120123

0 commit comments

Comments
 (0)