瀏覽代碼

darkfid/rpc_xmr: Clean up method usage

parazyd 1 年之前
父節點
當前提交
8ef362add0
共有 1 個文件被更改,包括 1 次插入3 次删除
  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()
         JsonResponse::new(resp_obj.into(), id).into()
     }
     }
 }
 }