Skip to content

Commit f89b437

Browse files
authored
fix: avoid creating default account for ix sysvar (#183)
1 parent 71de5e1 commit f89b437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harness/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ impl<AS: AccountStore> MolluskContext<AS> {
13681368
.accounts
13691369
.iter()
13701370
.for_each(|AccountMeta { pubkey, .. }| {
1371-
if seen.insert(*pubkey) {
1371+
if seen.insert(*pubkey) && pubkey != &solana_instructions_sysvar::id() {
13721372
// First try to load theirs, then see if it's a sysvar,
13731373
// then see if it's a cached program, then apply the
13741374
// default.

0 commit comments

Comments
 (0)