Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw committed May 28, 2024
1 parent 27aebf7 commit 9324ec0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/eth/transaction_relayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,15 @@ impl ExternalRelayer {

async fn compare_receipt(&self, stratus_receipt: ExternalReceipt, substrate_receipt: PendingTransaction<'_>) -> anyhow::Result<()> {
match substrate_receipt.await {
Ok(Some(substrate_receipt)) => {
Ok(Some(substrate_receipt)) =>
if let Err(compare_error) = substrate_receipt.compare(&stratus_receipt) {
let err_string = compare_error.to_string();
let error = log_and_err!("transaction mismatch!").context(err_string.clone());
self.save_mismatch(stratus_receipt, Some(substrate_receipt), &err_string).await;
error
} else {
Ok(())
}
}
},
Ok(None) => {
self.save_mismatch(stratus_receipt, None, "no receipt returned by substrate").await;
Err(anyhow!("no receipt returned by substrate"))
Expand Down

0 comments on commit 9324ec0

Please sign in to comment.