From a413b8c4ebed7a26f1137b7c96ccad709438a3f8 Mon Sep 17 00:00:00 2001 From: Daksh <41485688+Daksh14@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:04:34 -0400 Subject: [PATCH] Add error comment --- rusk-wallet/src/wallet.rs | 4 +++- wallet-core/src/moonlight.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rusk-wallet/src/wallet.rs b/rusk-wallet/src/wallet.rs index 47f178c487..ae1cad2ff7 100644 --- a/rusk-wallet/src/wallet.rs +++ b/rusk-wallet/src/wallet.rs @@ -86,7 +86,9 @@ impl Wallet { /// Returns phoenix key pair for a given address /// /// # Errors - /// - + /// + /// - If the Address provided is not a Phoenix address + /// - If the address is not owned pub fn phoenix_keys( &self, addr: &Address, diff --git a/wallet-core/src/moonlight.rs b/wallet-core/src/moonlight.rs index 7dea5b6a39..f7e2e887b3 100644 --- a/wallet-core/src/moonlight.rs +++ b/wallet-core/src/moonlight.rs @@ -57,6 +57,7 @@ pub fn moonlight( /// which is obtained via stake info query on the chain /// /// The `nonce` is the nonce of the moonlight transaction +/// /// # Errors /// /// This function most likey not fail but if the `nonce` is incorrect