Explorar o código

Revert "cli/drk2: Make sure all tokens and networks are lowercase."

This reverts commit 1be4d20f5bd3ad76e3254075e2c09d01dd4a41d6.
lunar-mining %!s(int64=4) %!d(string=hai) anos
pai
achega
19c74bfc4f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/bin/drk2.rs

+ 3 - 3
src/bin/drk2.rs

@@ -139,7 +139,7 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
 
 
     if let Some(matches) = options.subcommand_matches("deposit") {
     if let Some(matches) = options.subcommand_matches("deposit") {
         let network = matches.value_of("network").unwrap().to_lowercase();
         let network = matches.value_of("network").unwrap().to_lowercase();
-        let token = matches.value_of("TOKEN").unwrap().to_lowercase();
+        let token = matches.value_of("TOKEN").unwrap();
 
 
         // TODO: Retrieve cashier features and error if they
         // TODO: Retrieve cashier features and error if they
         // don't support the network.
         // don't support the network.
@@ -156,7 +156,7 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
 
 
     if let Some(matches) = options.subcommand_matches("withdraw") {
     if let Some(matches) = options.subcommand_matches("withdraw") {
         let network = matches.value_of("network").unwrap().to_lowercase();
         let network = matches.value_of("network").unwrap().to_lowercase();
-        let token = matches.value_of("TOKEN").unwrap().to_lowercase();
+        let token = matches.value_of("TOKEN").unwrap();
         let address = matches.value_of("ADDRESS").unwrap();
         let address = matches.value_of("ADDRESS").unwrap();
         let amount = matches.value_of("AMOUNT").unwrap().parse::<f64>()?;
         let amount = matches.value_of("AMOUNT").unwrap().parse::<f64>()?;
 
 
@@ -171,7 +171,7 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
     }
     }
 
 
     if let Some(matches) = options.subcommand_matches("transfer") {
     if let Some(matches) = options.subcommand_matches("transfer") {
-        let asset_type = matches.value_of("ASSET_TYPE").unwrap().to_lowercase();
+        let asset_type = matches.value_of("ASSET_TYPE").unwrap();
         let address = matches.value_of("ADDRESS").unwrap();
         let address = matches.value_of("ADDRESS").unwrap();
         let amount = matches.value_of("AMOUNT").unwrap().parse::<f64>()?;
         let amount = matches.value_of("AMOUNT").unwrap().parse::<f64>()?;