Explorar o código

bin/darkfid: renamed parse_network to parse_params

lunar-mining %!s(int64=4) %!d(string=hai) anos
pai
achega
0e372a8f57
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/bin/darkfid.rs

+ 2 - 2
src/bin/darkfid.rs

@@ -214,7 +214,7 @@ impl Darkfid {
         let network = &args[0];
         let network = &args[0];
         let token = &args[1];
         let token = &args[1];
 
 
-        let token_id = match self.parse_network(&network, &token) {
+        let token_id = match self.parse_params(&network, &token) {
             Ok(t) => t,
             Ok(t) => t,
             Err(_e) => {
             Err(_e) => {
                 debug!(target: "DARKFID", "TOKEN ID IS ERR");
                 debug!(target: "DARKFID", "TOKEN ID IS ERR");
@@ -362,7 +362,7 @@ impl Darkfid {
         }
         }
     }
     }
 
 
-    fn parse_network(&self, network: &Value, token: &Value) -> Result<Value> {
+    fn parse_params(&self, network: &Value, token: &Value) -> Result<Value> {
         match network.as_str() {
         match network.as_str() {
             Some("solana") | Some("sol") => match token.as_str() {
             Some("solana") | Some("sol") => match token.as_str() {
                 Some("solana") | Some("sol") => {
                 Some("solana") | Some("sol") => {