Summary
When we call evaluateTransactionExecutionUnits for a TxBody which executes a Reference Script we end up with a ScriptErrorEvaluationFailed ... due to overspending the budget error.
Steps to reproduce
We are calling evaluateTransactionExecutionUnits with a TxBody that executes a Reference Script. We cannot share the script here for privacy reasons but we assume that due to debug output in the script the size is considerable and exceeds the maximum allowed script units (10000000000 16000000). Due to the ScriptErrorEvaluationFailed error we cannot properly debug the script as we need to cut debug output from it.
Expected behavior
According to the API description however ScriptErrorEvaluationFailed ... due to overspending the budget should never occur:
The script evaluation failed. This usually means it evaluated to an error value. This is not a case of running out of execution units (which is not possible for evaluateTransactionExecutionUnits since the whole point of it is to discover how many execution units are needed).
System info (please complete the following information):
Ubuntu 22.04
Internal or External External
Area cardano-api
Summary When we call
evaluateTransactionExecutionUnits
for a TxBody which executes a Reference Script we end up with aScriptErrorEvaluationFailed ... due to overspending the budget
error.Steps to reproduce We are calling
evaluateTransactionExecutionUnits
with a TxBody that executes a Reference Script. We cannot share the script here for privacy reasons but we assume that due to debug output in the script the size is considerable and exceeds the maximum allowed script units (10000000000 16000000). Due to theScriptErrorEvaluationFailed
error we cannot properly debug the script as we need to cut debug output from it.Expected behavior According to the API description however
ScriptErrorEvaluationFailed ... due to overspending the budget
should never occur:System info (please complete the following information): Ubuntu 22.04
cardano-api 1.35.4 from https://input-output-hk.github.io/cardano-haskell-packages, ghc-8.10.7
cardano-node 1.35.4 - linux-x86_64 - ghc-8.10 git rev ebc7be471b30e5931b35f9bbc236d21c375b91bb
cardano-cli 1.35.4 - linux-x86_64 - ghc-8.10 git rev ebc7be471b30e5931b35f9bbc236d21c375b91bb