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

[2.0] Response changes #1883

Merged
merged 10 commits into from
Nov 8, 2023
Merged

[2.0] Response changes #1883

merged 10 commits into from
Nov 8, 2023

Conversation

chipshort
Copy link
Collaborator

@chipshort chipshort commented Sep 19, 2023

closes #1559
closes #1767
closes #1765

Not only the responses themselves, but also the structs contained are marked as non_exhaustive by this (except DecCoin because it seems very unlikely that anything is added here)

I also removed the Default impls, changed the address types to Addr and replaced the constructor of ContractInfoResponse with the macro-generated one.

@chipshort chipshort marked this pull request as draft September 19, 2023 16:08
@chipshort chipshort changed the title [2.0] Make responses non_exhaustive [2.0] Response changes Oct 4, 2023
@chipshort chipshort marked this pull request as ready for review October 13, 2023 07:39
contracts/staking/src/contract.rs Outdated Show resolved Hide resolved
packages/std/src/query/wasm.rs Outdated Show resolved Hide resolved
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Nice. Just the extra dependency and CHANGELOG left. Then this is done too

contracts/staking/Cargo.toml Outdated Show resolved Hide resolved
@chipshort chipshort merged commit 0294194 into main Nov 8, 2023
26 of 28 checks passed
@chipshort chipshort deleted the 1559-non-exhaustive branch November 8, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants