From 9697006ce4dc195e50e14788a3659ea19fea1035 Mon Sep 17 00:00:00 2001 From: Eric Tu <6364934+ec2@users.noreply.github.com> Date: Wed, 29 May 2024 12:37:35 -0400 Subject: [PATCH] fix(tendermint): Make `FinalizeBlock::validator_updates` nullable when deserializing (#1428) --- .../improvements/1428-finalizeblock-deserialization.md | 1 + tendermint/src/abci/response/finalize_block.rs | 1 + 2 files changed, 2 insertions(+) create mode 100644 .changelog/unreleased/improvements/1428-finalizeblock-deserialization.md diff --git a/.changelog/unreleased/improvements/1428-finalizeblock-deserialization.md b/.changelog/unreleased/improvements/1428-finalizeblock-deserialization.md new file mode 100644 index 000000000..cc9ca040f --- /dev/null +++ b/.changelog/unreleased/improvements/1428-finalizeblock-deserialization.md @@ -0,0 +1 @@ +- `[tendermint]` Fix `FinalizeBlock::validator_updates` deserialization as `nullable` ([\#1428](https://github.com/informalsystems/tendermint-rs/pull/1428)) diff --git a/tendermint/src/abci/response/finalize_block.rs b/tendermint/src/abci/response/finalize_block.rs index 124ce1aca..0cc2c8128 100644 --- a/tendermint/src/abci/response/finalize_block.rs +++ b/tendermint/src/abci/response/finalize_block.rs @@ -16,6 +16,7 @@ pub struct FinalizeBlock { pub tx_results: Vec, /// A list of updates to the validator set. /// These will reflect the validator set at current height + 2. + #[serde(with = "serializers::nullable")] pub validator_updates: Vec, /// Updates to the consensus params, if any. #[serde(default)]