Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
borispoehland committed Dec 18, 2024
1 parent c29fb43 commit ce9598a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/interactions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ export class SCInteraction {
auctionID,
auction?.auctioned_token_type ?? collection,
auction?.auctioned_token_nonce ?? nonce,
quantity ?? 1,
quantity,
])

if (sender.nonce) {
Expand All @@ -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) {
Expand Down

0 comments on commit ce9598a

Please sign in to comment.