From 0de4f6012b1d246ff0570203a6b4bbe4277b3c62 Mon Sep 17 00:00:00 2001 From: lucas-dydx <76970939+lucas-dydx@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:03:05 -0400 Subject: [PATCH] Update v4-client-js/src/clients/composite-client.ts --- v4-client-js/src/clients/composite-client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v4-client-js/src/clients/composite-client.ts b/v4-client-js/src/clients/composite-client.ts index 9f74e7fe..447cfaee 100644 --- a/v4-client-js/src/clients/composite-client.ts +++ b/v4-client-js/src/clients/composite-client.ts @@ -529,15 +529,15 @@ export class CompositeClient { throw new Error('goodTilTimeInSeconds must be set for LONG_TERM or CONDITIONAL order'); } if (goodTilBlock !== 0) { - throw new Error('Stateful orders use GTBT instead of GTB.'); + throw new Error('goodTIlBlock should be zero since LONG_TERM or CONDITIONAL orders use goodTilTimeInSeconds instead of goodTilBlock.'); } goodTilBlockTime = this.calculateGoodTilBlockTime(goodTilTimeInSeconds); } else { if (goodTilBlock === 0) { - throw new Error('goodTilBlock must be set for SHORT_TERM order'); + throw new Error('goodTilBlock must be non-zero for SHORT_TERM orders'); } if (goodTilTimeInSeconds !== 0) { - throw new Error('Short term orders use GTB instead of GTBT.'); + throw new Error('goodTilTimeInSeconds should be zero since SHORT_TERM orders use goodTilBlock instead of goodTilTimeInSeconds.'); } }