소스 검색

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()
     }
 }