Skip to content

fix: matching fields in GetMetadataResponse from the faucet#1918

Merged
bobbinth merged 2 commits intomainfrom
santiagopittella-fix-issuance-field
Apr 10, 2026
Merged

fix: matching fields in GetMetadataResponse from the faucet#1918
bobbinth merged 2 commits intomainfrom
santiagopittella-fix-issuance-field

Conversation

@SantiagoPittella
Copy link
Copy Markdown
Collaborator

@SantiagoPittella SantiagoPittella commented Apr 9, 2026

Recently a mismatch in the response from the faucet was detected, and it was caused by the removal of the issuance field from the GetMetadataResponse. This PR fixes it by removing the field.

Screenshot 2026-04-09 at 19 57 05

@SantiagoPittella SantiagoPittella force-pushed the santiagopittella-fix-issuance-field branch from ac62d51 to 83e7846 Compare April 9, 2026 22:58
Comment thread CHANGELOG.md

## v0.14.5 (2026-04-10)

- Removed `issuance` field from the network monitor's faucet `GetMetadataResponse` ([#1918](https://github.com/0xMiden/node/pull/1918)).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to update Cargo.toml version to 0.14.5 also. I tend to forget, need some automation to catch it maybe.

Copy link
Copy Markdown
Collaborator

@sergerad sergerad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just remember to update version in Cargo.toml

Copy link
Copy Markdown
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you! As @sergerad mentioned, would be good to update Cargo.toml as well - but I can also do it directly in main.

Comment on lines 62 to 72
/// Response from the faucet's `/get_metadata` endpoint.
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct GetMetadataResponse {
version: String,
id: String,
issuance: u64,
max_supply: u64,
decimals: u8,
explorer_url: Option<String>,
pow_load_difficulty: u64,
base_amount: u64,
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is the error message for serde errors propagated for this? I think we got

Failed to parse metadata response: {"version":"0.14.0","id":"mdev1aqt0djza2efvjgqg0y29hlw6jvn93r0a","max_supply":100000000000000000,"decimals":6,"explorer_url":null,"pow_load_difficulty":65536,"base_amount":100000000}

But maybe we could have emitted a more specific one ("expected field decimals").

@bobbinth bobbinth merged commit 3e70f02 into main Apr 10, 2026
18 checks passed
@bobbinth bobbinth deleted the santiagopittella-fix-issuance-field branch April 10, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants