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 a way to execute code and inspect stack #775

Open
igamigo opened this issue Mar 6, 2025 · 0 comments
Open

Add a way to execute code and inspect stack #775

igamigo opened this issue Mar 6, 2025 · 0 comments
Milestone

Comments

@igamigo
Copy link
Collaborator

igamigo commented Mar 6, 2025

Related to 0xPolygonMiden/miden-base#1161
Usually, Miden transactions are expected to modify the account's state in some way, but there are cases where users are interested in executing arbitrary code and reading the stack state after it. This implies not executing the epilogue and just returning after the user's code.
After changes are implemented to TransactionExecutor, we should provide a client API to do this, and a CLI command that exposes it as well. In the issue, this exec command is suggested:

miden exec --account <account_id> --script <path to masm file> --inputs <path to inputs file>
@igamigo igamigo added this to the v0.8.0 milestone Mar 6, 2025
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

1 participant