-
Notifications
You must be signed in to change notification settings - Fork 1
feat: custom error classes #58
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
Conversation
EdouardBougon
left a comment
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.
There is some types error.
We can discuss about the code to move to multichain
0b687f5 to
0ca8b22
Compare
0ca8b22 to
798351d
Compare
c0006af to
7d6325a
Compare
This reverts commit e024746.
EdouardBougon
left a comment
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
| resolve(msg.data.result); | ||
| } | ||
| if (resolve) { | ||
| resolve(msg); |
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.
resolve(msg.data);
Description
This PR introduces custom error classes so that errors are correctly handed over from the Multichain API to the user of the Multichain API Client.
A necessary refactor was also introduced making the transport interface agnostic from the Multichain API