mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-29 11:47:28 -04:00
Work in review comments
This commit is contained in:
parent
66c8401c95
commit
1041212a60
6 changed files with 41 additions and 61 deletions
|
@ -574,7 +574,7 @@ pub struct State5 {
|
|||
impl State5 {
|
||||
pub async fn claim_xmr<W>(&self, monero_wallet: &W) -> Result<()>
|
||||
where
|
||||
W: monero::CreateWalletForOutput,
|
||||
W: monero::CreateFromAndLoad,
|
||||
{
|
||||
let s_b = monero::PrivateKey { scalar: self.s_b };
|
||||
|
||||
|
@ -583,7 +583,7 @@ impl State5 {
|
|||
// NOTE: This actually generates and opens a new wallet, closing the currently
|
||||
// open one.
|
||||
monero_wallet
|
||||
.create_and_load_wallet_for_output(s, self.v, self.monero_wallet_restore_blockheight)
|
||||
.create_from_and_load(s, self.v, self.monero_wallet_restore_blockheight)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue