Skip to content

Commit 3ebe759

Browse files
authored
Merge pull request #3 from Certora/vaults-sanity
sanity for fluid's vaults::liquidate (part 2)
2 parents 62c18cd + 7bfc7a1 commit 3ebe759

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spl/src/token_interface.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ impl anchor_lang::AccountDeserialize for TokenAccount {
2424
}
2525
}
2626

27+
impl TokenAccount {
28+
/// CERTORA: used to create a new instance for verification purposes
29+
pub fn new_unchecked(inner: spl_token_2022::state::Account) -> Self {
30+
Self(inner)
31+
}
32+
}
33+
2734
impl anchor_lang::AccountSerialize for TokenAccount {}
2835

2936
impl anchor_lang::Owners for TokenAccount {

0 commit comments

Comments
 (0)