-
Notifications
You must be signed in to change notification settings - Fork 16
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
The build command calculates insufficient Plutus script cost for two certificates #1023
Comments
I compared 10.2.0.0 tagged version
and the version from #986
The issue is reproducible.
The script would run twice in this transaction, therefore 2 budgets. The first one slightly cheaper. Not sure about the reason. However, when creating the transaction bodies., there is a difference in the calculated execution units. After using
|
The certificates are missing in the attached files and reproduction steps are incomplete |
Yes noticed that, so I generated the certificates myself with:
followed by
|
Related previous issue: |
@CarlosLopezDeLara thanks for the extra information, that's helpful. Thanks to it, I'm able to reproduce the error in: |
Description
In a situation where two certificates with Plutus script are used in single tx, the build command computes lower cost than is needed, and tx submit fails. I can observe this behavior in a test that registers Plutus stake address and delegate it to a pool in single tx.
I can build the tx using
build-raw
and submit it successfully.The
build
command:Tx submit fails with (shortened error):
The scripts cost reported by
transaction build
:The reported cost is the same for
cardano-cli
version where I can observe the issue, and for the last release where the issue was not present.I can reproduce it with
cardano-cli
that has #986 merged.Steps to Reproduce
transaction build
Additional Context
Files used to build the tx and full error message: issue_delegation_plutus.tar.gz
The text was updated successfully, but these errors were encountered: