From 7b9de68e8cecae8f275366526efa111ff6a13cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20P=C3=B6hland?= Date: Tue, 17 Sep 2024 18:10:24 +0200 Subject: [PATCH] remove checks as amount is now required to pass --- src/interactions/index.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/interactions/index.ts b/src/interactions/index.ts index 945b2ef..8e23a4d 100644 --- a/src/interactions/index.ts +++ b/src/interactions/index.ts @@ -712,9 +712,6 @@ export class SCInteraction { payment: Payment, sender: WithSenderAndNonce ): IPlainTransactionObject { - if (!payment.amount) { - throw new Error('Payment amount is required') - } const isEgld = payment.collection == 'EGLD' const tx = this.factory.createTransactionForExecute({ sender: new Address(sender.address), @@ -762,9 +759,6 @@ export class SCInteraction { interaction.withNonce(sender.nonce) } interaction.withSender(new Address(sender.address)) - if (!payment.amount) { - throw new Error('Payment amount is required') - } if (payment.collection == 'EGLD') { interaction.withValue(payment.amount) } else {