Skip to content

Commit

Permalink
remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Oct 26, 2023
1 parent 2bb7efa commit 10ee598
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/transactionsFactories/transferTransactionsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,19 @@ export class TransferTransactionsFactory {
return this.createSingleESDTTransferDraft(options);
}

let receiver = options.receiver;
const transferArgs = this.dataArgsBuilder.buildArgsForMultiESDTNFTTransfer(
options.receiver,
options.tokenTransfers
);

const transferArgs = this.dataArgsBuilder.buildArgsForMultiESDTNFTTransfer(receiver, options.tokenTransfers);
const extraGasForTransfer = new BigNumber(this.config.gasLimitMultiESDTNFTTransfer)
.multipliedBy(new BigNumber(numberOfTransfers))
.plus(new BigNumber(ADDITIONAL_GAS_FOR_ESDT_NFT_TRANSFER));
receiver = options.sender;

return new DraftTransactionBuilder({
config: this.config,
sender: options.sender,
receiver: receiver,
receiver: options.sender,
dataParts: transferArgs,
gasLimit: extraGasForTransfer,
addDataMovementGas: true,
Expand Down

0 comments on commit 10ee598

Please sign in to comment.