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

Allow passing custom inputs when evaluating UPLC code #53

Closed
nielstron opened this issue Sep 6, 2022 · 0 comments · Fixed by #56
Closed

Allow passing custom inputs when evaluating UPLC code #53

nielstron opened this issue Sep 6, 2022 · 0 comments · Fixed by #56
Labels
tooling Tooling and developer experience improvements

Comments

@nielstron
Copy link
Contributor

The command aiken uplc eval <input> does currently not support passing any values. This is quite cumbersome, as usually programs evaluate to lambda expressions that are meant to be executed on i.e. PlutusData.

I suggest to extend the CLI to allow the following aiken uplc eval <input> (<uplc code>)* where the optional additional code evaluates to values that are passed to the program stored in <input>.
Example: aiken uplc eval sc.uplc "(con data #02)".

An alternative is to parse data more dynamically like it is done by pluto (example pluto usage pluto eval sc.pluto 2 -> this automatically generates the above PlutusData object, a tagged integer)

@rvcas rvcas mentioned this issue Sep 8, 2022
@rvcas rvcas closed this as completed in #56 Sep 8, 2022
@rvcas rvcas added enhancement tooling Tooling and developer experience improvements labels Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Tooling and developer experience improvements
Projects
Status: 🚀 Released
Development

Successfully merging a pull request may close this issue.

2 participants