From f5e2d1ee47584aac47b17d260afb531913115482 Mon Sep 17 00:00:00 2001 From: Ariel Barmat <140773+abarmat@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:09:02 -0300 Subject: [PATCH] chore: add log for signing account --- availability-oracle/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/availability-oracle/src/main.rs b/availability-oracle/src/main.rs index 300b914..f257e52 100644 --- a/availability-oracle/src/main.rs +++ b/availability-oracle/src/main.rs @@ -9,6 +9,8 @@ use common::prelude::*; use common::prometheus; use contract::*; use ethers::abi::Address; +use ethers::signers::LocalWallet; +use ethers::signers::Signer; use ipfs::*; use manifest::{Abi, DataSource, Manifest, Mapping}; use network_subgraph::*; @@ -159,6 +161,8 @@ async fn run(logger: Logger, config: Config) -> Result<()> { Box::new(StateManagerDryRun::new(logger.clone())) } else { let signing_key: &SecretKey = &config.signing_key.unwrap().parse()?; + let wallet = LocalWallet::from_bytes(signing_key.as_ref()).unwrap(); + info!(logger, "Signing account {}", wallet.address().to_string()); state_manager( config.url, signing_key,