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

Add example to parse a constant ScriptContext #24

Closed
srid opened this issue Dec 21, 2021 · 1 comment
Closed

Add example to parse a constant ScriptContext #24

srid opened this issue Dec 21, 2021 · 1 comment

Comments

@srid
Copy link
Member

srid commented Dec 21, 2021

Instead of using Plutus' Emulator, and then writing a validator, just to test ScriptContext decoding ... perhaps we can use a hardcoded bytestring directly in a simple example that doesn't depend on writing a validator function. Here's one:

#d8799fd8799f9fd8799fd8799fd8799f5820724907dfb8dd7b29d9affb742785ca6a231dbd017fd8aa2b73e025bcef265a9cff01ffd8799fd8799fd87a9f581c3ec3b8467553ca4810d0c82dcbdc4d042633530f880216e8d37a6258ffd87a80ffa140a1401a00989680d8799f58202cc2afd267462229babbc139837611310e4307bd6c7e870049c22fb02c2ad122ffffffff9fd8799fd8799fd8799f581c2e0ad60c3207248cecd47dbde3d752e0aad141d6b8f81ac2c6eca27cffd87a80ffa140a1401a00989680d87a80ffffa0a08080d8799fd8799fd87980d87a80ffd8799fd87b80d87a80ffff9f581c2e0ad60c3207248cecd47dbde3d752e0aad141d6b8f81ac2c6eca27cff9fd8799f58202cc2afd267462229babbc139837611310e4307bd6c7e870049c22fb02c2ad122581c2e0ad60c3207248cecd47dbde3d752e0aad141d6b8f81ac2c6eca27cffffd8799f582099c5dabfd1483810014829cfa08d85f40642dc65b9da7dbc056272b0767ef183ffffd87a9fd8799fd8799f5820724907dfb8dd7b29d9affb742785ca6a231dbd017fd8aa2b73e025bcef265a9cff01ffffff
@L-as
Copy link
Member

L-as commented Dec 22, 2021

We probably want to encode it as JSON.

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

No branches or pull requests

2 participants