Test: transactions.test.ts gas assertion outdated after SWAP_GAS_PER_HOP bump to 600k #30

Closed
opened 2026-03-18 05:00:27 +00:00 by Brouie · 5 comments
Brouie commented 2026-03-18 05:00:27 +00:00 (Migrated from gitlab.com)

File: frontend-dapp/src/services/terraclassic/tests/transactions.test.ts line 225\n\nProblem: Test 'scales gas for send with inner execute_swap_operations' expects 1,200,000 (3 ops x 400k) but SWAP_GAS_PER_HOP was bumped to 600k in MR !727, so actual is 1,800,000.\n\nFix: Change line 225 from:\nexpect(fee.gasLimit).toBe(BigInt(1200000))\nto:\nexpect(fee.gasLimit).toBe(BigInt(1800000))\n\n177/178 tests pass. This is the only failure.

**File:** frontend-dapp/src/services/terraclassic/__tests__/transactions.test.ts line 225\n\n**Problem:** Test 'scales gas for send with inner execute_swap_operations' expects 1,200,000 (3 ops x 400k) but SWAP_GAS_PER_HOP was bumped to 600k in MR \!727, so actual is 1,800,000.\n\n**Fix:** Change line 225 from:\n`expect(fee.gasLimit).toBe(BigInt(1200000))`\nto:\n`expect(fee.gasLimit).toBe(BigInt(1800000))`\n\n177/178 tests pass. This is the only failure.
Brouie commented 2026-03-18 05:14:25 +00:00 (Migrated from gitlab.com)

mentioned in commit e37d7b3e97

mentioned in commit e37d7b3e97d1a1739b53f00effc2163c9fba78e1
Brouie commented 2026-03-18 05:14:51 +00:00 (Migrated from gitlab.com)

mentioned in merge request !729

mentioned in merge request !729
PlasticDigits commented 2026-03-18 05:31:31 +00:00 (Migrated from gitlab.com)

mentioned in commit d5fc2b4ce8

mentioned in commit d5fc2b4ce814261f9d8ff41b63501ffb12f4d83b
PlasticDigits commented 2026-03-18 05:32:09 +00:00 (Migrated from gitlab.com)

Merged, @brouie ready for review

Merged, @brouie ready for review
Brouie (Migrated from gitlab.com) closed this issue 2026-03-18 06:43:29 +00:00
Brouie commented 2026-03-18 06:55:30 +00:00 (Migrated from gitlab.com)

mentioned in issue #26

mentioned in issue #26
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic#30
No description provided.