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

Replace failure with thiserror #654

Merged
merged 13 commits into from
Jul 28, 2022

Conversation

yeastplume
Copy link
Member

Wallet counterpart for mimblewimble/grin#3728, note that the node PR will need to be merged before this will compile.

All should be as before, except thiserror doesn't support explicit backtraces so these have been removed from test output where they appeared.

Review should again just check to ensure I haven't accidentally changed any logic.

Copy link
Member

@phyro phyro left a comment

Choose a reason for hiding this comment

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

Great job! 👍

I went through the changes and didn't notice any logical mistakes. I also made some minor calls to CLI/API that returned an error and got the same response

let version = SlateVersion::V4;
Ok(VersionedSlate::into_version(slate, version).map_err(|e| e.kind())?)
VersionedSlate::into_version(slate, version)
Copy link
Member

Choose a reason for hiding this comment

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

👍 for removing redundant unwrap->wrap. I think there are a few more above in functions build_coinbase, receive_tx, finalize_tx in api/src/foreign_rpc.rs

@yeastplume
Copy link
Member Author

All good, many thanks for reviewing!

@yeastplume yeastplume merged commit 64cab53 into mimblewimble:master Jul 28, 2022
bayk added a commit to mwcproject/mwc-wallet that referenced this pull request Aug 13, 2024
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.

2 participants