We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aa38b4 commit 697f111Copy full SHA for 697f111
sdk/pinocchio/src/entrypoint/mod.rs
@@ -872,9 +872,11 @@ mod tests {
872
873
// Last unique account.
874
let duplicated = unsafe { accounts[unique - 1].assume_init_ref() };
875
+ // No mutable borrow active at this point.
876
+ assert!(duplicated.try_borrow_mut_data().is_ok());
877
- // Duplicated accounts should have the same `data_len` as the
- // last unique account.
878
+ // Duplicated accounts should reference (share) the account pointer
879
+ // to the last unique account.
880
for account in accounts[unique..].iter() {
881
let account_info = unsafe { account.assume_init_ref() };
882
0 commit comments