Skip to content

Commit

Permalink
always include the masked amount version (#3036)
Browse files Browse the repository at this point in the history
* always include the masked amount version

* add changelog entry
  • Loading branch information
eranrund committed Jan 23, 2023
1 parent 4031f22 commit 26ba141
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mobilecoind-json/src/data_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 26ba141

Please sign in to comment.