Janus 4 лет назад
Родитель
Сommit
21500b0168
2 измененных файлов с 8 добавлено и 6 удалено
  1. 6 2
      src/service/btc.rs
  2. 2 4
      src/util/token_list.rs

+ 6 - 2
src/service/btc.rs

@@ -348,7 +348,9 @@ impl BtcClient {
                serialize_hex(&signed_tx));
 
         //TODO: Replace unwrap with error matching
-        let txid = client.transaction_broadcast_raw(&signed_tx.serialize().to_vec()).unwrap();
+        let txid = client
+            .transaction_broadcast_raw(&signed_tx.serialize().to_vec())
+            .unwrap();
 
         debug!(target: "BTC BRIDGE", "Sent {} satoshi to main wallet, txid: {}", amount, txid);
         Ok(())
@@ -457,7 +459,9 @@ impl NetworkClient for BtcClient {
         );
 
         //TODO: Replace unwrap with error matching
-        let txid = client.transaction_broadcast_raw(&signed_tx.serialize().to_vec()).unwrap();
+        let txid = client
+            .transaction_broadcast_raw(&signed_tx.serialize().to_vec())
+            .unwrap();
         debug!(target: "BTC BRIDGE", "Sent {} satoshi to external wallet, txid: {}", amount, txid);
         Ok(())
     }

+ 2 - 4
src/util/token_list.rs

@@ -96,10 +96,8 @@ impl DrkTokenList {
     }
 
     pub fn symbol_from_id(&self, id: jubjub::Fr) -> Result<Option<String>> {
-        if id.to_string()
-            == "0x01300f9bce0f9ba7168dc001a67bcbda3a5bf4bdb4c56ae900fe4698cee9a7bd"
-        {
-            return Ok(Some("btc".to_string()))
+        if id.to_string() == "0x01300f9bce0f9ba7168dc001a67bcbda3a5bf4bdb4c56ae900fe4698cee9a7bd" {
+            return Ok(Some("btc".to_string()));
         }
 
         Ok(self