Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always include the masked amount version #3036

Merged
merged 3 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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