From 00cf4684fc2e8a6cfc4bb044f4cdb6d457e3abe4 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Fri, 12 Jun 2026 11:28:58 +0200 Subject: [PATCH] test(wasm-sdk): raise withdrawal test amount to the v12 minimum The `should withdraw credits from platform` functional test withdrew 200000 credits, but protocol v12 raised `min_withdrawal_amount` from 190000 to 1000000 (1000 duffs) in SYSTEM_LIMITS_V2. The test now fails with "Credit withdrawal amount 200000 must be greater or equal to 1000000". Bump the amount to the new minimum and refresh the stale comments. Identity 1 holds 100 DASH worth of credits, so the larger withdrawal stays well within balance. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../wasm-sdk/tests/functional/transitions/identity.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/wasm-sdk/tests/functional/transitions/identity.spec.ts b/packages/wasm-sdk/tests/functional/transitions/identity.spec.ts index 8cc2c984220..469560cd92f 100644 --- a/packages/wasm-sdk/tests/functional/transitions/identity.spec.ts +++ b/packages/wasm-sdk/tests/functional/transitions/identity.spec.ts @@ -183,10 +183,11 @@ describe('Identity State Transitions', function describeIdentityStateTransitions // Withdraw credits - not specifying toAddress means withdrawal // will be to the identity's registered withdrawal address - // Minimum is 190000 credits, maximum is 50000000000000 + // Minimum is 1000000 credits (raised from 190000 in protocol v12), + // maximum is 50000000000000 const remainingBalance = await client.identityCreditWithdrawal({ identity, - amount: 200000n, // Must be >= 190000 + amount: 1000000n, // Must be >= 1000000 coreFeePerByte: 1, signer, });