Explorar el Código

darkfid/rpc_xmr: Clean up method usage

parazyd hace 1 año
padre
commit
8ef362add0
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      bin/darkfid/src/rpc_xmr.rs

+ 1 - 3
bin/darkfid/src/rpc_xmr.rs

@@ -46,9 +46,7 @@ impl DarkfiNode {
             }
         };
 
-        let hex_hash = format!("{:x?}", genesis_hash);
-        let resp_obj = HashMap::from([("chain_id".to_string(), JsonValue::String(hex_hash))]);
-
+        let resp_obj = HashMap::from([("chain_id".to_string(), genesis_hash.to_string().into())]);
         JsonResponse::new(resp_obj.into(), id).into()
     }
 }