From cbcffe209b6340b9df3e7b1fa6328b25088ab511 Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu <23022326+d0cd@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:21:45 -0700 Subject: [PATCH] Fix length of struct in Serialize --- ledger/block/src/transition/serialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/block/src/transition/serialize.rs b/ledger/block/src/transition/serialize.rs index fa7ebd38ee..619615a321 100644 --- a/ledger/block/src/transition/serialize.rs +++ b/ledger/block/src/transition/serialize.rs @@ -19,7 +19,7 @@ impl Serialize for Transition { fn serialize(&self, serializer: S) -> Result { match serializer.is_human_readable() { true => { - let mut transition = serializer.serialize_struct("Transition", 7)?; + let mut transition = serializer.serialize_struct("Transition", 8)?; transition.serialize_field("id", &self.id)?; transition.serialize_field("program", &self.program_id)?; transition.serialize_field("function", &self.function_name)?;