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

serialiseCompiledCode should be type constrained #6175

Open
bezirg opened this issue Jun 4, 2024 · 0 comments
Open

serialiseCompiledCode should be type constrained #6175

bezirg opened this issue Jun 4, 2024 · 0 comments

Comments

@bezirg
Copy link
Contributor

bezirg commented Jun 4, 2024

Summary

serialiseCompiledCode :: forall a. CompiledCode a -> SerialisedScript
takes any a and turns it into a SerialisedScript.

It would be better for the users to constrain this to:

CompiledCode (BuiltinData -> BuiltinData -> BuiltinData ->() ) -> SerialisedScript for V1,V2

and

CompiledCode (BuiltinData -> BuiltinUnit) -> SerialisedScript for V1,V2

for V3.

This needs versioning the SerialisedScript module in the plutus-ledger-api. Also optionally provide an unsafeSerialiseCompiledCode version that behaves with any a

Steps to reproduce the behavior

No response

Actual Result

No response

Expected Result

No response

Describe the approach you would take to fix this

No response

System info

No response

@effectfully effectfully added status: triaged and removed status: needs triage GH issues that requires triage labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants