Skip to content

Commit

Permalink
chore: Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
satran004 committed Aug 23, 2023
1 parent 9ed394b commit f8861c2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> result = new QuickTxBuilder(backendService)
Expand All @@ -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);
Expand Down

0 comments on commit f8861c2

Please sign in to comment.