Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Stub in check for memo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Jan 28, 2022
1 parent 3f93723 commit a77df16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions token/program-2022/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ impl Processor {
return Err(TokenError::MintMismatch.into());
}

if let Ok(extension) = dest_account.get_extension_mut::<MemoTransfer>() {
if extension.require_incoming_transfer_memos != 0 {
// TODO: use get_processed_instructions syscall to check for memo
}
}

source_account.base.amount = source_account
.base
.amount
Expand Down

0 comments on commit a77df16

Please sign in to comment.