From f8861c25f0663b841355318b2dfb49aa44d190b9 Mon Sep 17 00:00:00 2001 From: Satya Date: Wed, 23 Aug 2023 22:22:44 +0800 Subject: [PATCH] chore: Added comment --- .../cardano/aiken/tx/evaluator/ApplyParamMintNFTIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/integrationTest/java/com/bloxbean/cardano/aiken/tx/evaluator/ApplyParamMintNFTIT.java b/src/integrationTest/java/com/bloxbean/cardano/aiken/tx/evaluator/ApplyParamMintNFTIT.java index e6e1fe4..9726cdd 100644 --- a/src/integrationTest/java/com/bloxbean/cardano/aiken/tx/evaluator/ApplyParamMintNFTIT.java +++ b/src/integrationTest/java/com/bloxbean/cardano/aiken/tx/evaluator/ApplyParamMintNFTIT.java @@ -90,7 +90,7 @@ void gitCardContract() throws ApiException { PlutusData mintAction = ConstrPlutusData.of(0); ScriptTx scriptTx = new ScriptTx() - .collectFrom(utxo, PlutusData.unit()) + .collectFrom(utxo, PlutusData.unit()) //This is a workaround for now as we need to pass redeemer data to include the utxo. This will be fixed in the next release .mintAsset(giftPlutusScript, new Asset(tokenName, BigInteger.valueOf(1)), mintAction, senderAddress); Result result = new QuickTxBuilder(backendService) @@ -99,6 +99,7 @@ void gitCardContract() throws ApiException { .withSigner(SignerProviders.signerFrom(sender)) .withTxEvaluator(new AikenTransactionEvaluator(backendService)) .preBalanceTx((context, txn) -> { + //Remove the spend redeemer as it's not required for minting txn.getWitnessSet().getRedeemers().removeIf(redeemer -> redeemer.getTag() == RedeemerTag.Spend); }).withTxInspector(transaction -> { System.out.println(transaction);