From 4088e15ee20ec123d9f7fefab476084b758ff62a Mon Sep 17 00:00:00 2001 From: lunar-mining Date: Tue, 20 Jul 2021 14:48:28 +0200 Subject: [PATCH] fixed typo in Transfer::verify_amount() --- src/cli/drk_cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/drk_cli.rs b/src/cli/drk_cli.rs index c80d124eb..65194a893 100644 --- a/src/cli/drk_cli.rs +++ b/src/cli/drk_cli.rs @@ -16,7 +16,7 @@ impl Transfer { } } - pub fn verfiy_amount(amount: &str) -> Result<()> { + pub fn verify_amount(amount: &str) -> Result<()> { if amount.parse::().is_ok() || amount.parse::().is_ok() { Ok(()) } else { @@ -178,7 +178,7 @@ impl DrkCli { trn.pub_key = address.to_string(); } if let Some(amount) = transfer_sub.value_of("amount") { - Transfer::verfiy_amount(amount)?; + Transfer::verify_amount(amount)?; trn.amount = amount.to_string(); } transfer = Some(trn);