Explorar o código

Replace script_pubkey with address for return

Janus %!s(int64=4) %!d(string=hai) anos
pai
achega
cdf8f6ad0f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {