فهرست منبع

Replace script_pubkey with address for return

Janus 4 سال پیش
والد
کامیت
cdf8f6ad0f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/service/btc.rs

+ 1 - 1
src/service/btc.rs

@@ -395,7 +395,7 @@ impl NetworkClient for BtcClient {
     ) -> Result<String> {
         let keypair: Keypair = deserialize(&private_key)?;
         let btc_keys = Account::new(&keypair, self.network);
-        let public_key = btc_keys.script_pubkey.to_string();
+        let public_key = btc_keys.address.to_string();
 
         executor
             .spawn(async move {