Procházet zdrojové kódy

fix: update fortuna version to 7.4.5 and enhance transaction submission logging (#2456)

* fix: update fortuna version to 7.4.5 and enhance transaction submission logging

* refactor: remove unused chain_id and sequence_number parameters from transaction submission functions
Daniel Chew před 8 měsíci
rodič
revize
2fdddfba49

+ 1 - 1
apps/fortuna/Cargo.lock

@@ -1554,7 +1554,7 @@ dependencies = [
 
 [[package]]
 name = "fortuna"
-version = "7.4.4"
+version = "7.4.5"
 dependencies = [
  "anyhow",
  "axum",

+ 1 - 1
apps/fortuna/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "fortuna"
-version = "7.4.4"
+version = "7.4.5"
 edition = "2021"
 
 [lib]

+ 8 - 5
apps/fortuna/src/eth_utils/utils.rs

@@ -2,11 +2,12 @@ use {
     crate::eth_utils::nonce_manager::NonceManaged,
     anyhow::{anyhow, Result},
     backoff::ExponentialBackoff,
-    ethers::types::TransactionReceipt,
-    ethers::types::U256,
-    ethers::{contract::ContractCall, middleware::Middleware},
-    std::sync::atomic::AtomicU64,
-    std::sync::Arc,
+    ethers::{
+        contract::ContractCall,
+        middleware::Middleware,
+        types::{TransactionReceipt, U256},
+    },
+    std::sync::{atomic::AtomicU64, Arc},
     tokio::time::{timeout, Duration},
     tracing,
 };
@@ -261,6 +262,8 @@ pub async fn submit_tx<T: Middleware + NonceManaged + 'static>(
             / 100,
     );
 
+    tracing::info!("Submitting transaction: {:?}", transaction);
+
     let pending_tx = client
         .send_transaction(transaction.clone(), None)
         .await