cardano-client-lib icon indicating copy to clipboard operation
cardano-client-lib copied to clipboard

SCRIPT COST ERROR - After adding V2 & V3 version of the GiftCard example compiled by Aiken 1.1.2

Open lucky777ada opened this issue 5 months ago • 0 comments

Added version V2 & V3 of the updated GiftCard example.

When executed there's an error for the new compiled V2 & V3 scripts:

quicktx.QuickTxBuilder$TxContext (QuickTxBuilder.java:351) - Error while evaluating script cost com.bloxbean.cardano.client.function.exception.TxBuildException: Failed to compute script cost : {"ScriptFailures":{}} at com.bloxbean.cardano.client.function.helper.ScriptCostEvaluators.lambda$evaluateScriptCost$0(ScriptCostEvaluators.java:40) at com.bloxbean.cardano.client.quicktx.QuickTxBuilder$TxContext.lambda$build$3(QuickTxBuilder.java:348) at com.bloxbean.cardano.client.function.TxBuilder.lambda$andThen$0(TxBuilder.java:48) at com.bloxbean.cardano.client.function.TxBuilder.lambda$andThen$0(TxBuilder.java:47) at com.bloxbean.cardano.client.function.TxBuilder.lambda$andThen$0(TxBuilder.java:47) at com.bloxbean.cardano.client.function.TxBuilderContext.build(TxBuilderContext.java:259) at com.bloxbean.cardano.client.quicktx.QuickTxBuilder$TxContext.build(QuickTxBuilder.java:372) at com.bloxbean.cardano.client.quicktx.QuickTxBuilder$TxContext.buildAndSign(QuickTxBuilder.java:389)

aiken.toml

version = "0.0.0" compiler = "v1.1.2" plutus = "v3" // & v2 respectively license = "Apache-2.0" description = "Aiken contracts for project"

[[dependencies]] name = "aiken-lang/stdlib" version = "v2.0.0" source = "github"

Backend Service = BlockFrost - PreProd

I have a pull request on a fork in case you want to just run the code to replicate:

https://github.com/bloxbean/cardano-client-lib/pull/444

lucky777ada avatar Sep 17 '24 00:09 lucky777ada