Skip to content

Commit f8b4aa8

Browse files
committed
test: remove no-longer applicable delegate-stx while stacking test
1 parent d5fb7d1 commit f8b4aa8

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

src/tests-2.5/pox-4-delegate-revoked-stacking.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -320,48 +320,6 @@ describe('PoX-4 - Delegate Revoked Stacking', () => {
320320
expect(delegateStackResult.repr).toEqual('(err 9)'); // ERR_STACKING_PERMISSION_DENIED
321321
});
322322

323-
test('Try to perform delegate-stx - again', async () => {
324-
// make sure stacker is not currently delegating
325-
await expect(
326-
readOnlyFnCall<ClarityValueOptionalNone>(
327-
[contractAddress, contractName],
328-
'get-delegation-info',
329-
[standardPrincipalCV(STACKER.stxAddr)],
330-
STACKER.stxAddr
331-
)
332-
).rejects.toThrowError(
333-
'OptionNone result for call to ST000000000000000000002AMW42H,pox-4::get-delegation-info'
334-
);
335-
336-
// but stacker is still locked
337-
const coreBalanceInfo = await testEnv.client.getAccount(STACKER.stxAddr);
338-
expect(BigInt(coreBalanceInfo.locked)).toBe(DELEGATE_HALF_AMOUNT);
339-
340-
// delegate with the full amount
341-
const delegateTx = await makeContractCall({
342-
senderKey: STACKER.secretKey,
343-
contractAddress,
344-
contractName,
345-
functionName: 'delegate-stx',
346-
functionArgs: [
347-
uintCV(DELEGATE_FULL_AMOUNT),
348-
standardPrincipalCV(POOL.stxAddr), // delegate-to
349-
noneCV(), // untilBurnBlockHeight
350-
someCV(STACKER.poxAddrClar), // pox-addr
351-
],
352-
network: testEnv.stacksNetwork,
353-
anchorMode: AnchorMode.OnChainOnly,
354-
fee: 10000n,
355-
});
356-
const delegateTxResult = await testEnv.client.sendTransaction(
357-
Buffer.from(delegateTx.serialize())
358-
);
359-
const delegateDbTx = await standByForTx(delegateTxResult.txId);
360-
const delegateResult = decodeClarityValue(delegateDbTx.raw_result);
361-
expect(delegateResult.repr).toEqual('(err 3)'); // ERR_STACKING_ALREADY_STACKED
362-
expect(delegateDbTx.status).not.toBe(DbTxStatus.Success);
363-
});
364-
365323
test('Try to perform delegate-stack-increase - without delegation', async () => {
366324
const delegateStackIncreaseTx = await makeContractCall({
367325
senderKey: POOL.secretKey,

0 commit comments

Comments
 (0)