Skip to content

Commit 697f111

Browse files
committed
Tweaks
1 parent 4aa38b4 commit 697f111

File tree

1 file changed

+4
-2
lines changed
  • sdk/pinocchio/src/entrypoint

1 file changed

+4
-2
lines changed

sdk/pinocchio/src/entrypoint/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,11 @@ mod tests {
872872

873873
// Last unique account.
874874
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());
875877

876-
// Duplicated accounts should have the same `data_len` as the
877-
// last unique account.
878+
// Duplicated accounts should reference (share) the account pointer
879+
// to the last unique account.
878880
for account in accounts[unique..].iter() {
879881
let account_info = unsafe { account.assume_init_ref() };
880882

0 commit comments

Comments
 (0)