-
Notifications
You must be signed in to change notification settings - Fork 15
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
Use Either for error handling #115
Conversation
We already export an `Either` type, which can be reused by clients of this library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the goal is to delete the corresponding class from lightning-kmp
when we update it to use this version of bitcoin-kmp
, right? In that case we should also import the Try
implementation, this way we remove it as well from lightning-kmp
, otherwise it would be weird to keep one in lightning-kmp
and the other in bitcoin-kmp
?
Done in 7af325c, though I believe that we may not need it: API methods in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I believe we can revert the version change and merge this 👍
I agree with that, but inside |
done in e3ba135 |
We already export an
Either
type, which can be reused by clients of this library.