Răsfoiți Sursa

fixed typo in Transfer::verify_amount()

lunar-mining 5 ani în urmă
părinte
comite
4088e15ee2
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/cli/drk_cli.rs

+ 2 - 2
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::<u64>().is_ok() || amount.parse::<f64>().is_ok() {
         if amount.parse::<u64>().is_ok() || amount.parse::<f64>().is_ok() {
             Ok(())
             Ok(())
         } else {
         } else {
@@ -178,7 +178,7 @@ impl DrkCli {
                     trn.pub_key = address.to_string();
                     trn.pub_key = address.to_string();
                 }
                 }
                 if let Some(amount) = transfer_sub.value_of("amount") {
                 if let Some(amount) = transfer_sub.value_of("amount") {
-                    Transfer::verfiy_amount(amount)?;
+                    Transfer::verify_amount(amount)?;
                     trn.amount = amount.to_string();
                     trn.amount = amount.to_string();
                 }
                 }
                 transfer = Some(trn);
                 transfer = Some(trn);