From 74bd76cbf39a9fc35c7f33bc02094193975a930a Mon Sep 17 00:00:00 2001 From: Fedor Sakharov Date: Mon, 7 Aug 2023 18:06:58 +0300 Subject: [PATCH] fix: actually print the predictions not requests (#86) --- finalizer/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/finalizer/src/lib.rs b/finalizer/src/lib.rs index a475c93c..5df5f731 100644 --- a/finalizer/src/lib.rs +++ b/finalizer/src/lib.rs @@ -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())