Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions spl/src/token_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ impl anchor_lang::AccountDeserialize for TokenAccount {
}
}

impl TokenAccount {
/// CERTORA: used to create a new instance for verification purposes
pub fn new_unchecked(inner: spl_token_2022::state::Account) -> Self {
Self(inner)
}
}

impl anchor_lang::AccountSerialize for TokenAccount {}

impl anchor_lang::Owners for TokenAccount {
Expand Down