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

Expose SerialiseAsRawBytesError in Cardano.Api #5085

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

ch1bo
Copy link
Contributor

@ch1bo ch1bo commented Apr 12, 2023

The function deserialiseFromRawBytes was changed from Maybe to Either SerialiseAsRawBytesError, but the error type was not exposed in the Cardano.API.

The function deserialiseFromRawBytes was changed from Maybe to Either
SerialiseAsRawBytesError, but the error type was not exposed in the
Cardano.API.
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 12, 2023
This should be rather taken from upstream. Created two PRs to avoid
workarounds: IntersectMBO/cardano-node#5085
and IntersectMBO/cardano-node#5086
@ch1bo
Copy link
Contributor Author

ch1bo commented Apr 13, 2023

This is even more important when defining SerialiseAsRawBytes instances. Without the data constructor, instances cannot create the SerialiseAsRawBytesError and will be partial by definition.

ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 14, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 14, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 14, 2023
This should be rather taken from upstream. Created two PRs to avoid
workarounds: IntersectMBO/cardano-node#5085
and IntersectMBO/cardano-node#5086
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 14, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
@newhoggy newhoggy enabled auto-merge April 15, 2023 03:34
@newhoggy newhoggy added this pull request to the merge queue Apr 15, 2023
Merged via the queue into master with commit 0b8893d Apr 15, 2023
@iohk-bors iohk-bors bot deleted the ch1bo/expose-serialise-as-raw-bytes-error branch April 15, 2023 04:07
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 18, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 18, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 20, 2023
This should be rather taken from upstream. Created two PRs to avoid
workarounds: IntersectMBO/cardano-node#5085
and IntersectMBO/cardano-node#5086
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 20, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 22, 2023
This should be rather taken from upstream. Created two PRs to avoid
workarounds: IntersectMBO/cardano-node#5085
and IntersectMBO/cardano-node#5086
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 22, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 24, 2023
This should be rather taken from upstream. Created two PRs to avoid
workarounds: IntersectMBO/cardano-node#5085
and IntersectMBO/cardano-node#5086
ch1bo added a commit to cardano-scaling/hydra that referenced this pull request Apr 24, 2023
Some instances are incomplete as it is missing the
SerialiseAsRawBytesError from cardano-api to produce the proper Left
values. See IntersectMBO/cardano-node#5085
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