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

Fix Plutus script encoding #2329

Merged
merged 1 commit into from
Jun 11, 2021
Merged

Fix Plutus script encoding #2329

merged 1 commit into from
Jun 11, 2021

Conversation

michaelpj
Copy link
Contributor

The whole point of exposing a CBOR version was so we didn't expose the
internal format (which happens to be Flat right now). This was my
mistake since I did the wrong thing in the API module. I've fixed that
upstream and made sure that there's only one serialization typeclass
instance so we don't make this mistake again.

Nothing changes in the ledger proper since it already treated scripts as
opaque bytestrings, but some tests needed fixing.

(This sha is the tip of the PR I made in Plutus, that PR is based off the old sha. So this is the minimal possible change, and thus avoids us having to deal with the issues Sjoerd is having with master in #2325)

The whole point of exposing a CBOR version was so we didn't expose the
internal format (which happens to be Flat right now). This was my
mistake since I did the wrong thing in the API module. I've fixed that
upstream and made sure that there's only one serialization typeclass
instance so we don't make this mistake again.

Nothing changes in the ledger proper since it already treated scripts as
opaque bytestrings, but some tests needed fixing.
@dcoutts
Copy link
Contributor

dcoutts commented Jun 11, 2021

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 11, 2021

@iohk-bors iohk-bors bot merged commit d6b3d6b into master Jun 11, 2021
@iohk-bors iohk-bors bot deleted the mpj/fix-script-encoding branch June 11, 2021 17:35
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.

4 participants