Skip to content

Commit bb1fa4c

Browse files
authored
Merge pull request #12 from graphprotocol/ab/print-signing-account
chore: add log for signing account
2 parents b8fb5a2 + f5e2d1e commit bb1fa4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

availability-oracle/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ use common::prelude::*;
99
use common::prometheus;
1010
use contract::*;
1111
use ethers::abi::Address;
12+
use ethers::signers::LocalWallet;
13+
use ethers::signers::Signer;
1214
use ipfs::*;
1315
use manifest::{Abi, DataSource, Manifest, Mapping};
1416
use network_subgraph::*;
@@ -159,6 +161,8 @@ async fn run(logger: Logger, config: Config) -> Result<()> {
159161
Box::new(StateManagerDryRun::new(logger.clone()))
160162
} else {
161163
let signing_key: &SecretKey = &config.signing_key.unwrap().parse()?;
164+
let wallet = LocalWallet::from_bytes(signing_key.as_ref()).unwrap();
165+
info!(logger, "Signing account {}", wallet.address().to_string());
162166
state_manager(
163167
config.url,
164168
signing_key,

0 commit comments

Comments
 (0)