Skip to content

Commit

Permalink
Snapshot's zeroed account as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikrk committed Jun 13, 2024
1 parent 8e0d235 commit 486723f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/client/src/fuzzer/snapshot_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ fn is_optional(parsed_field: &AccountField) -> bool {
AccountField::CompositeField(f) => &f.constraints,
};

constraints.init.is_some() || constraints.is_close() || is_optional
constraints.init.is_some() || constraints.is_close() || is_optional || constraints.is_zeroed()
}

/// Creates new Snapshot struct from the context struct. Removes Box<> types.
Expand Down

0 comments on commit 486723f

Please sign in to comment.