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

Wrong policy script case evaluation #17

Open
the-headless-ghost opened this issue Jun 15, 2023 · 0 comments
Open

Wrong policy script case evaluation #17

the-headless-ghost opened this issue Jun 15, 2023 · 0 comments

Comments

@the-headless-ghost
Copy link

I'm unsure whether it is a problem with the Plutarch context builder or a problem with how the scripts are evaluated.

In a ScriptCase, I use a policy script and apply a transaction context where I do two mintings, one from the minting policy that I want to test and another one that needs to be there so validation works. But then I see in the traces that the policy script is executed with the wrong symbol, the symbol of the policy that I want to test changes to the symbol of the last minted policy in the transaction, and also the number of tokens I burn or mint changes to that symbol.
To prevent this, I need to change the order in how the minting builders are applied. I need to ensure that the minting builder of the policy that I want to test is the last minting builder.

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