From 08d456ebd7341fd56fc6021369d9bfa0c3e63099 Mon Sep 17 00:00:00 2001 From: bucurdavid Date: Tue, 12 Nov 2024 18:23:56 +0200 Subject: [PATCH] fix: mint tx --- src/sft-minter.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/sft-minter.ts b/src/sft-minter.ts index 159548a..4fa087d 100644 --- a/src/sft-minter.ts +++ b/src/sft-minter.ts @@ -7,7 +7,9 @@ import { IAddress, ResultsParser, StringValue, + Token, TokenIdentifierValue, + TokenTransfer, Transaction, U64Value } from '@multiversx/sdk-core/out'; @@ -444,7 +446,15 @@ export class SftMinter extends Minter { arguments: args, sender: senderAddress, contract: this.contract.getAddress(), - gasLimit: 130_000_000n + gasLimit: 130_000_000n, + tokenTransfers: [ + new TokenTransfer({ + token: new Token({ + identifier: itheumTokenIdentifier[this.env as EnvironmentsEnum] + }), + amount: BigInt(amountToSend) + }) + ] }); return {