From 26ba141b5621d0b90fb71d67f2c7f56bc7b0dd44 Mon Sep 17 00:00:00 2001 From: Eran Rundstein Date: Sun, 22 Jan 2023 22:12:10 -0800 Subject: [PATCH] always include the masked amount version (#3036) * always include the masked amount version * add changelog entry --- CHANGELOG.md | 6 ++++++ mobilecoind-json/src/data_types.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5526285393..ece45457e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The crates in this repository do not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) at this time. +## [4.1.0] + +### Changed + +- mobilecoind-json now always includes the MaskedAmount version in its responses ([#3036]) + ## [4.0.1] ### Added diff --git a/mobilecoind-json/src/data_types.rs b/mobilecoind-json/src/data_types.rs index 82371c5990..a2d8e47240 100644 --- a/mobilecoind-json/src/data_types.rs +++ b/mobilecoind-json/src/data_types.rs @@ -501,7 +501,7 @@ impl From<&mc_api::external::TxOut_oneof_masked_amount> for JsonMaskedAmount { commitment: hex::encode(src.get_commitment().get_data()), masked_value: JsonU64(src.get_masked_value()), masked_token_id: hex::encode(src.get_masked_token_id()), - version: None, + version: Some(1), }, mc_api::external::TxOut_oneof_masked_amount::masked_amount_v2(src) => Self { commitment: hex::encode(src.get_commitment().get_data()),