From ee6738b6902194564989fecac7ed18809678c6ad Mon Sep 17 00:00:00 2001 From: Ikrk Date: Wed, 29 May 2024 15:35:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Snapshot's=20zeroed=20account=20?= =?UTF-8?q?as=20optional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + crates/client/src/fuzzer/snapshot_generator.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c84d9f5f..969566f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 incremented upon a breaking change and the patch version will be incremented for features. ## [dev] - Unreleased +- fix/snapshot's zeroed account as optional ([#170](https://github.com/Ackee-Blockchain/trident/pull/170)) - feat/fuzzer-stats-logging, an optional statistics output for fuzzing session ([#144](https://github.com/Ackee-Blockchain/trident/pull/144)) ## [0.6.0] - 2024-05-20 diff --git a/crates/client/src/fuzzer/snapshot_generator.rs b/crates/client/src/fuzzer/snapshot_generator.rs index 252649b5..78c2ba52 100644 --- a/crates/client/src/fuzzer/snapshot_generator.rs +++ b/crates/client/src/fuzzer/snapshot_generator.rs @@ -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.