Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
add missing zeroing of escrow account at the end of process_exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-schaaf committed May 11, 2021
1 parent 531b794 commit 2e0ad5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ impl Processor {
.checked_add(escrow_account.lamports())
.ok_or(EscrowError::AmountOverflow)?;
**escrow_account.lamports.borrow_mut() = 0;
*escrow_account.data.borrow_mut() = &mut [];

Ok(())
}
Expand Down

0 comments on commit 2e0ad5e

Please sign in to comment.