From ce9598a805009bf3f0ecea6e185d06896ce82ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20P=C3=B6hland?= Date: Wed, 18 Dec 2024 11:30:51 +0100 Subject: [PATCH] fix --- src/interactions/index.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/interactions/index.ts b/src/interactions/index.ts index fd08dc3..4f4af9a 100644 --- a/src/interactions/index.ts +++ b/src/interactions/index.ts @@ -869,7 +869,7 @@ export class SCInteraction { auctionID, auction?.auctioned_token_type ?? collection, auction?.auctioned_token_nonce ?? nonce, - quantity ?? 1, + quantity, ]) if (sender.nonce) { @@ -879,12 +879,8 @@ export class SCInteraction { if (token === 'EGLD') { interaction.withValue( bigNumber - ? TokenTransfer.egldFromBigInteger( - new BigNumber(amount).multipliedBy(quantity) - ) - : TokenTransfer.egldFromAmount( - new BigNumber(amount).multipliedBy(quantity) - ) + ? TokenTransfer.egldFromBigInteger(amount) + : TokenTransfer.egldFromAmount(amount) ) } else { if (!bigNumber) {