Skip to content

Commit

Permalink
feat: message for requiring ledger confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Jun 29, 2024
1 parent 67d7fb6 commit 6b93425
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/subcommands/signer/ledger/get_public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 6b93425

Please sign in to comment.