Skip to content

Commit 33d0e43

Browse files
committed
all the logs
1 parent 9b4030e commit 33d0e43

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/tasks/submit/sim_err.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use alloy::{primitives::Bytes, rpc::json_rpc::ErrorPayload, sol_types::SolError}
22
use signet_zenith::Zenith::{self, IncorrectHostBlock};
33

44
/// Represents the kind of revert that can occur during simulation.
5-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5+
#[derive(Debug, Clone, PartialEq, Eq)]
66
pub enum SimRevertKind {
77
/// Incorrect host block error
88
IncorrectHostBlock,
@@ -11,13 +11,13 @@ pub enum SimRevertKind {
1111
/// One rollup block per host block error
1212
OneRollupBlockPerHostBlock,
1313
/// Unknown error
14-
Unknown,
14+
Unknown(Option<Bytes>),
1515
}
1616

1717
impl From<Option<Bytes>> for SimRevertKind {
1818
fn from(data: Option<Bytes>) -> Self {
1919
let Some(data) = data else {
20-
return Self::Unknown;
20+
return Self::Unknown(data);
2121
};
2222

2323
if data.starts_with(&IncorrectHostBlock::SELECTOR) {
@@ -27,7 +27,7 @@ impl From<Option<Bytes>> for SimRevertKind {
2727
} else if data.starts_with(&Zenith::OneRollupBlockPerHostBlock::SELECTOR) {
2828
Self::OneRollupBlockPerHostBlock
2929
} else {
30-
Self::Unknown
30+
Self::Unknown(Some(data))
3131
}
3232
}
3333
}

src/tasks/submit/task.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ impl SubmitTask {
8888
async fn sim_with_call(&self, tx: &TransactionRequest) -> eyre::Result<()> {
8989
match self.provider().call(tx.clone()).block(BlockNumberOrTag::Pending.into()).await {
9090
Err(TransportError::ErrorResp(e)) => {
91+
debug!(?e, "submit simulation failed with error response");
9192
let e = SimErrorResp::from(e);
9293
bail!(e)
9394
}

0 commit comments

Comments
 (0)