This commit is contained in:
Alfredo Garcia 2024-04-16 17:07:02 -03:00
parent cbb49b4686
commit c9a236e90e
1 changed files with 2 additions and 2 deletions

View File

@ -471,7 +471,7 @@ impl WalletWrite for MemoryWalletDb {
// Mark the Sapling nullifiers of the spent notes as spent in the `sapling_spends` map.
transaction.sapling_spends().iter().map(|s| {
let nullifier = s.nf();
if let Some((txid, spent)) = self.sapling_spends.get_mut(&nullifier) {
if let Some((txid, spent)) = self.sapling_spends.get_mut(nullifier) {
*spent = true;
}
});
@ -480,7 +480,7 @@ impl WalletWrite for MemoryWalletDb {
// Mark the Orchard nullifiers of the spent notes as spent in the `orchard_spends` map.
transaction.orchard_spends().iter().map(|s| {
let nullifier = s.nf();
if let Some((txid, spent)) = self.orchard_spends.get_mut(&nullifier) {
if let Some((txid, spent)) = self.orchard_spends.get_mut(nullifier) {
*spent = true;
}
});