Skip to content

Commit

Permalink
fix: actually print the predictions not requests (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
montekki committed Aug 7, 2023
1 parent d96e795 commit 74bd76c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions finalizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ where
.map(|r| r.into_request_with_gaslimit(self.one_withdrawal_gas_limit))
.collect();

vlog::info!("predicting results for withdrawals: {w:?}");

Ok(self
let results = self
.finalizer_contract
.finalize_withdrawals(w)
.call()
.await?
.await?;
vlog::info!("predicted results for withdrawals: {results:?}");

Ok(results
.into_iter()
.filter(|p| !p.success || p.gas > self.one_withdrawal_gas_limit)
.collect())
Expand Down

0 comments on commit 74bd76c

Please sign in to comment.