0xfirefist il y a 1 an
Parent
commit
ecefcffbc8
2 fichiers modifiés avec 9 ajouts et 3 suppressions
  1. 1 1
      apps/fortuna/src/command/run.rs
  2. 8 2
      apps/fortuna/src/keeper.rs

+ 1 - 1
apps/fortuna/src/command/run.rs

@@ -349,7 +349,7 @@ pub async fn track_collected_fee(
     }
 }
 
-/// tracks the current sequence number and end sequence number of the given provider address for 
+/// tracks the current sequence number and end sequence number of the given provider address for
 /// each chain in the given config periodically
 pub async fn track_hashchain(
     config: Config,

+ 8 - 2
apps/fortuna/src/keeper.rs

@@ -28,8 +28,8 @@ use {
             Provider,
             Ws,
         },
-        types::U256,
         signers::Signer,
+        types::U256,
     },
     futures::StreamExt,
     std::sync::Arc,
@@ -246,7 +246,13 @@ pub async fn process_event(
                                     .total_gas_spent
                                     .get_or_create(&AccountLabel {
                                         chain_id: chain_config.id.clone(),
-                                        address:  contract.client().inner().inner().signer().address().to_string(),
+                                        address:  contract
+                                            .client()
+                                            .inner()
+                                            .inner()
+                                            .signer()
+                                            .address()
+                                            .to_string(),
                                     })
                                     .inc_by(gas_used);
                             }