From 49d27e0bd26311363043c4cd6e85158bda23afeb Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Fri, 18 Jul 2025 20:08:07 -0400 Subject: [PATCH 1/2] fix(purchasing): update static fee for purchase transactions increase the static fee for purchase transactions from 0.004 ALGO to 0.009 ALGO in the `PurchasingModule`. This change ensures that the fee structure aligns with transaction requirements. --- packages/sdk/src/modules/purchasing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk/src/modules/purchasing.ts b/packages/sdk/src/modules/purchasing.ts index 737711e..1656731 100644 --- a/packages/sdk/src/modules/purchasing.ts +++ b/packages/sdk/src/modules/purchasing.ts @@ -181,7 +181,7 @@ export class PurchasingModule extends BaseModule { .newGroup() .purchase({ args: { payment: paymentTxn }, - staticFee: AlgoAmount.MicroAlgos(4000), // 0.004 ALGO + staticFee: AlgoAmount.MicroAlgos(9000), // 0.009 ALGO }) .send({ populateAppCallResources: true }) @@ -246,7 +246,7 @@ export class PurchasingModule extends BaseModule { .newGroup() .purchase({ args: { payment: paymentTxn }, - staticFee: AlgoAmount.MicroAlgos(4000), // 0.004 ALGO + staticFee: AlgoAmount.MicroAlgos(9000), // 0.009 ALGO }) .send({ populateAppCallResources: true }) From b0036f8a2d16c92d639b488ff28dbba07463aed4 Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Fri, 18 Jul 2025 20:13:34 -0400 Subject: [PATCH 2/2] test(purchasing): update test expectations for new static fee values Update test expectations to match the new static fee of 0.009 ALGO for NFD purchase transactions. Tests were failing because they expected the old fee value of 0.004 ALGO. - Updated claim test to expect 9000 microAlgos instead of 4000 - Updated buy test to expect 9000 microAlgos instead of 4000 - All tests now pass with the updated fee values --- packages/sdk/tests/modules/purchasing.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk/tests/modules/purchasing.test.ts b/packages/sdk/tests/modules/purchasing.test.ts index fc9f09a..0770a73 100644 --- a/packages/sdk/tests/modules/purchasing.test.ts +++ b/packages/sdk/tests/modules/purchasing.test.ts @@ -293,7 +293,7 @@ describe('PurchasingModule', () => { expect(mockInstanceClient.newGroup().purchase).toHaveBeenCalledWith({ args: { payment: { id: 'mock-txn' } }, staticFee: expect.objectContaining({ - amountInMicroAlgo: BigInt(4000), + amountInMicroAlgo: BigInt(9000), }), }) expect( @@ -360,7 +360,7 @@ describe('PurchasingModule', () => { expect(mockInstanceClient.newGroup().purchase).toHaveBeenCalledWith({ args: { payment: { id: 'mock-txn' } }, staticFee: expect.objectContaining({ - amountInMicroAlgo: BigInt(4000), + amountInMicroAlgo: BigInt(9000), }), }) expect(