From 8fcb40e7342e52f8c2c15b39dbb956c44e30be98 Mon Sep 17 00:00:00 2001 From: ShahakShama <70578257+ShahakShama@users.noreply.github.com> Date: Sun, 10 Mar 2024 06:28:56 +0200 Subject: [PATCH] feat: derive Default for ThinStateDiff (#188) --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 823c3e2d..d0d8ad5e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -47,7 +47,7 @@ pub struct StateDiff { // Invariant: Addresses are strictly increasing. // The invariant is enforced as [`ThinStateDiff`] is created only from [`starknet_api`][`StateDiff`] // where the addresses are strictly increasing. -#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] +#[derive(Debug, Default, Clone, Eq, PartialEq, Deserialize, Serialize)] pub struct ThinStateDiff { pub deployed_contracts: IndexMap, pub storage_diffs: IndexMap>,