Skip to content

Commit

Permalink
Merge pull request #12 from graphprotocol/ab/print-signing-account
Browse files Browse the repository at this point in the history
chore: add log for signing account
  • Loading branch information
Maikol authored Apr 9, 2024
2 parents b8fb5a2 + f5e2d1e commit bb1fa4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions availability-oracle/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bb1fa4c

Please sign in to comment.