Skip to content

Commit ea3779f

Browse files
fix: use the right address when obtaining the tx nonce
1 parent c2fdc66 commit ea3779f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • aggregation_mode/proof_aggregator/src/backend

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use alloy::{
2424
hex,
2525
network::{EthereumWallet, TransactionBuilder},
2626
primitives::{utils::parse_ether, Address, U256},
27-
providers::{PendingTransactionError, Provider, ProviderBuilder},
27+
providers::{PendingTransactionError, Provider, ProviderBuilder, WalletProvider},
2828
rpc::types::{TransactionReceipt, TransactionRequest},
2929
signers::local::LocalSigner,
3030
};
@@ -342,7 +342,11 @@ impl ProofAggregator {
342342
let nonce = self
343343
.proof_aggregation_service
344344
.provider()
345-
.get_transaction_count(*self.proof_aggregation_service.address())
345+
.get_transaction_count(
346+
self.proof_aggregation_service
347+
.provider()
348+
.default_signer_address(),
349+
)
346350
.await
347351
.map_err(|e| {
348352
RetryError::Transient(

0 commit comments

Comments
 (0)