You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let index = remaining_accounts.iter().position(|x| x.key() == ID).unwrap_or(remaining_accounts.len());
515
+
let index = remaining_accounts
516
+
.iter()
517
+
.position(|x| x.key() == ID)
518
+
.unwrap_or(remaining_accounts.len());
513
519
514
520
// Authority check against component metadata (partial deserialize)
515
521
for component in remaining_accounts[..index].iter().skip(1).step_by(2){
@@ -590,7 +596,13 @@ fn apply_impl<'info>(
590
596
}
591
597
}
592
598
593
-
let cpi_remaining_accounts = remaining_accounts[..index].iter().skip(1).step_by(2).chain(remaining_accounts[index..].iter().skip(1)).cloned().collect::<Vec<_>>();
599
+
let cpi_remaining_accounts = remaining_accounts[..index]
0 commit comments