diff --git a/coins/monero/src/wallet/scan.rs b/coins/monero/src/wallet/scan.rs index 6ac13f7a..7fd1a027 100644 --- a/coins/monero/src/wallet/scan.rs +++ b/coins/monero/src/wallet/scan.rs @@ -115,7 +115,7 @@ impl Metadata { let subaddress = if read_byte(r)? == 1 { Some( SubaddressIndex::new(read_u32(r)?, read_u32(r)?) - .ok_or(io::Error::new(io::ErrorKind::Other, "invalid subaddress in metadata"))?, + .ok_or_else(|| io::Error::new(io::ErrorKind::Other, "invalid subaddress in metadata"))?, ) } else { None diff --git a/coins/monero/src/wallet/send/multisig.rs b/coins/monero/src/wallet/send/multisig.rs index 7dcb6f13..3ba990f4 100644 --- a/coins/monero/src/wallet/send/multisig.rs +++ b/coins/monero/src/wallet/send/multisig.rs @@ -123,7 +123,7 @@ impl SignableTransaction { let clsag = ClsagMultisig::new(transcript.clone(), input.key(), inputs[i].clone()); key_images.push(( clsag.H, - keys.current_offset().unwrap_or(dfg::Scalar::zero()).0 + self.inputs[i].key_offset(), + keys.current_offset().unwrap_or_else(dfg::Scalar::zero).0 + self.inputs[i].key_offset(), )); clsags.push(AlgorithmMachine::new(clsag, offset).map_err(TransactionError::FrostError)?); }