Skip to content

Commit

Permalink
fix: sim on pending (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich authored Oct 25, 2024
1 parent ad1a490 commit 9fc5f55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/builder/src/tasks/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::{
tasks::block::InProgressBlock,
};
use alloy::consensus::{constants::GWEI_TO_WEI, SimpleCoder};
use alloy::eips::BlockId;
use alloy::eips::BlockNumberOrTag;
use alloy::network::{TransactionBuilder, TransactionBuilder4844};
use alloy::providers::{Provider as _, WalletProvider};
Expand Down Expand Up @@ -147,8 +146,9 @@ impl SubmitTask {
.with_from(self.provider.default_signer_address())
.with_to(self.config.zenith_address);

let sim_block = BlockId::Number(BlockNumberOrTag::Number(resp.req.host_block_number.to()));
if let Err(TransportError::ErrorResp(e)) = self.provider.call(&tx).block(sim_block).await {
if let Err(TransportError::ErrorResp(e)) =
self.provider.call(&tx).block(BlockNumberOrTag::Pending.into()).await
{
error!(
code = e.code,
message = %e.message,
Expand Down

0 comments on commit 9fc5f55

Please sign in to comment.