From c78e44d7b5b4c0e3ba3ba0e68bc722679c428187 Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Mon, 11 Aug 2025 18:47:15 +0300 Subject: [PATCH] Add support for comments in various steps --- crates/format/src/input.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/format/src/input.rs b/crates/format/src/input.rs index e30210b..1b80e97 100644 --- a/crates/format/src/input.rs +++ b/crates/format/src/input.rs @@ -55,6 +55,10 @@ pub struct Input { #[derive(Clone, Debug, Default, Serialize, Deserialize, Eq, PartialEq)] pub struct BalanceAssertion { + /// An optional comment on the balance assertion. + #[serde(skip_serializing_if = "Option::is_none")] + pub comment: Option, + /// The address that the balance assertion should be done on. /// /// This is a string which will be resolved into an address when being processed. Therefore, @@ -69,6 +73,10 @@ pub struct BalanceAssertion { #[derive(Clone, Debug, Default, Serialize, Deserialize, Eq, PartialEq)] pub struct StorageEmptyAssertion { + /// An optional comment on the storage empty assertion. + #[serde(skip_serializing_if = "Option::is_none")] + pub comment: Option, + /// The address that the balance assertion should be done on. /// /// This is a string which will be resolved into an address when being processed. Therefore,