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

Verify that plutus.json is computed from aiken build #455

Open
1 task
geofflittle opened this issue Dec 20, 2024 · 0 comments
Open
1 task

Verify that plutus.json is computed from aiken build #455

geofflittle opened this issue Dec 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@geofflittle
Copy link

Describe the feature you'd like

Mesh should have some functionality that verifies that plutus.json matches the output of aiken build.

Is your feature request related to a problem? Please describe.

I'm brand new to aiken and Cardano in general. I made a mistake while following the hello world tutorial.

  • I ran aiken build once early in the tutorial, producing a plutus.json that represented an always-failing validator,
  • I continued with the tutorial and made changes to the validator,
  • I forgot to run aiken build again, after these changes,
  • I continued with the tutorial, wrote the lock and unlock scripts, and
  • I ran the lock script, sending ADA to the always-failing validator, ensuring I'd not be able to get back the ADA I sent.

Describe the solution you'd like

Around the time that I run applyParamsToScript, which reads from plutus.json, there should be an additional, recommended but optional step to verify that the plutus.json that's being read was produced by the current validator source on disk via aiken build.

Additional context

No response

Would you be willing to implement it?

  • Yes, I will implement it.
@geofflittle geofflittle added the enhancement New feature or request label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant