From 6b93425656a598cc321e4feae1c4158dd5138b5d Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Sun, 30 Jun 2024 04:09:23 +0800 Subject: [PATCH] feat: message for requiring ledger confirmation --- src/subcommands/signer/ledger/get_public_key.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/subcommands/signer/ledger/get_public_key.rs b/src/subcommands/signer/ledger/get_public_key.rs index cf51e3f..4a9fe8a 100644 --- a/src/subcommands/signer/ledger/get_public_key.rs +++ b/src/subcommands/signer/ledger/get_public_key.rs @@ -18,6 +18,10 @@ impl GetPublicKey { pub async fn run(self) -> Result<()> { let ledger = LedgerStarknetApp::new().await?; + if self.display { + eprintln!("Please confirm the public key on your Ledger"); + } + let public_key = ledger.get_public_key(self.path, self.display).await?; println!("{:#064x}", public_key.scalar());