|
|
|
@ -82,7 +82,7 @@ impl Transfer for Wallet {
|
|
|
|
|
public_spend_key: PublicKey,
|
|
|
|
|
public_view_key: PublicViewKey,
|
|
|
|
|
amount: Amount,
|
|
|
|
|
) -> Result<(TransferProof, Amount)> {
|
|
|
|
|
) -> Result<TransferProof> {
|
|
|
|
|
let destination_address =
|
|
|
|
|
Address::standard(self.network, public_spend_key, public_view_key.into());
|
|
|
|
|
|
|
|
|
@ -97,12 +97,10 @@ impl Transfer for Wallet {
|
|
|
|
|
tracing::info!("Monero tx broadcasted!, tx hash: {:?}", tx_hash);
|
|
|
|
|
let tx_key = PrivateKey::from_str(&res.tx_key)?;
|
|
|
|
|
|
|
|
|
|
let fee = Amount::from_piconero(res.fee);
|
|
|
|
|
|
|
|
|
|
let transfer_proof = TransferProof::new(tx_hash, tx_key);
|
|
|
|
|
tracing::debug!(" Transfer proof: {:?}", transfer_proof);
|
|
|
|
|
|
|
|
|
|
Ok((transfer_proof, fee))
|
|
|
|
|
Ok(transfer_proof)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|