From 220d9fb1b0e913dbdd86c2152aa09a88f42d693d Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Tue, 13 Sep 2022 13:53:44 -0400 Subject: [PATCH] fix deposit and withdraw tests --- packages/xrpl/src/models/transactions/AMMDeposit.ts | 2 +- packages/xrpl/src/models/transactions/AMMWithdraw.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/xrpl/src/models/transactions/AMMDeposit.ts b/packages/xrpl/src/models/transactions/AMMDeposit.ts index 0b62664a..66616d08 100644 --- a/packages/xrpl/src/models/transactions/AMMDeposit.ts +++ b/packages/xrpl/src/models/transactions/AMMDeposit.ts @@ -93,7 +93,7 @@ export function validateAMMDeposit(tx: Record): void { throw new ValidationError('AMMDeposit: Asset2In must be an Amount') } - if (tx.EPrice != null && typeof !isAmount(tx.EPrice)) { + if (tx.EPrice != null && !isAmount(tx.EPrice)) { throw new ValidationError('AMMDeposit: EPrice must be an Amount') } } diff --git a/packages/xrpl/src/models/transactions/AMMWithdraw.ts b/packages/xrpl/src/models/transactions/AMMWithdraw.ts index 8fdf059d..ae997466 100644 --- a/packages/xrpl/src/models/transactions/AMMWithdraw.ts +++ b/packages/xrpl/src/models/transactions/AMMWithdraw.ts @@ -95,7 +95,7 @@ export function validateAMMWithdraw(tx: Record): void { throw new ValidationError('AMMWithdraw: Asset2Out must be an Amount') } - if (tx.EPrice != null && typeof !isAmount(tx.EPrice)) { + if (tx.EPrice != null && !isAmount(tx.EPrice)) { throw new ValidationError('AMMWithdraw: EPrice must be an Amount') } }