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

PartialEq for errors #253

Merged
merged 12 commits into from
Mar 30, 2021
Merged

PartialEq for errors #253

merged 12 commits into from
Mar 30, 2021

Conversation

maurolacy
Copy link
Contributor

Closes #179.

@maurolacy maurolacy requested a review from ethanfrey March 26, 2021 16:08
@maurolacy maurolacy self-assigned this Mar 26, 2021
@maurolacy maurolacy changed the title Partialeq for errors PartialEq for errors Mar 26, 2021
Copy link
Member

@ethanfrey ethanfrey 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 and improves a lot of tests.

However, I had some questions on what the canonical format for checking StdError types is and let us just define one pattern and stick to it (I see 2 approached above).

Other that that, just a rebase to fix merge conflicts and this is good to merge.

contracts/cw1-subkeys/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw1-subkeys/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw20-base/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw20-base/src/contract.rs Outdated Show resolved Hide resolved
Copy link
Member

@ethanfrey ethanfrey 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. Just one idea for further refinement (optional)

contracts/cw1-subkeys/src/contract.rs Show resolved Hide resolved
contracts/cw20-atomic-swap/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw4-stake/src/contract.rs Outdated Show resolved Hide resolved
@maurolacy maurolacy force-pushed the partialeq-for-errors branch from c558087 to f5a671d Compare March 30, 2021 07:58
Standardize error args order
Add extra matches! / error builders
@maurolacy maurolacy merged commit ce82ab2 into master Mar 30, 2021
@maurolacy
Copy link
Contributor Author

Merging now, so as to integrate with the other branches.

@maurolacy maurolacy deleted the partialeq-for-errors branch March 30, 2021 09:52
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.

Support PartialEq on error
2 participants