diff --git a/packages/xrpl/src/models/transactions/paymentChannelClaim.ts b/packages/xrpl/src/models/transactions/paymentChannelClaim.ts index 6b25a967..5c89178f 100644 --- a/packages/xrpl/src/models/transactions/paymentChannelClaim.ts +++ b/packages/xrpl/src/models/transactions/paymentChannelClaim.ts @@ -31,8 +31,8 @@ export enum PaymentChannelClaimFlags { * the channel to the close time of the previous ledger plus the channel's * SettleDelay time, unless the channel already has an earlier Expiration * time.) If the destination address uses this flag when the channel still - * holds an amount, any amount that remains after processing the claim is returned to - * the source address. + * holds an amount, any amount that remains after processing the claim is + * returned to the source address. */ tfClose = 0x00020000, } @@ -91,8 +91,8 @@ export interface PaymentChannelClaimFlagsInterface extends GlobalFlags { * the channel to the close time of the previous ledger plus the channel's * SettleDelay time, unless the channel already has an earlier Expiration * time.) If the destination address uses this flag when the channel still - * holds an amount, any amount that remains after processing the claim is returned to - * the source address. + * holds an amount, any amount that remains after processing the claim is + * returned to the source address. */ tfClose?: boolean } @@ -118,7 +118,7 @@ export interface PaymentChannelClaim extends BaseTransaction { /** * The amount authorized by the Signature. This must match the amount in the * signed message. This is the cumulative amount that can be dispensed by the - * channel, including amounts previously redeemed. + * channel, including amounts previously redeemed. Required unless closing the channel. */ Amount?: Amount /** @@ -154,11 +154,11 @@ export function validatePaymentChannelClaim(tx: Record): void { } if (tx.Balance !== undefined && !isAmount(tx.Balance)) { - throw new ValidationError('PaymentChannelClaim: invalid Balance') + throw new ValidationError('PaymentChannelClaim: Balance must be an Amount') } if (tx.Amount !== undefined && !isAmount(tx.Amount)) { - throw new ValidationError('PaymentChannelClaim: invalid Amount') + throw new ValidationError('PaymentChannelClaim: Amount must be an Amount') } if (tx.Signature !== undefined && typeof tx.Signature !== 'string') { diff --git a/packages/xrpl/src/models/transactions/paymentChannelCreate.ts b/packages/xrpl/src/models/transactions/paymentChannelCreate.ts index c4f2070f..90f98ea6 100644 --- a/packages/xrpl/src/models/transactions/paymentChannelCreate.ts +++ b/packages/xrpl/src/models/transactions/paymentChannelCreate.ts @@ -67,7 +67,7 @@ export function validatePaymentChannelCreate( } if (typeof tx.Amount !== 'string' && !isAmount(tx.Amount)) { - throw new ValidationError('PaymentChannelCreate: invalid Amount') + throw new ValidationError('PaymentChannelCreate: Amount must be an Amount') } if (tx.Destination === undefined) { diff --git a/packages/xrpl/src/models/transactions/paymentChannelFund.ts b/packages/xrpl/src/models/transactions/paymentChannelFund.ts index 1f835c46..5c381461 100644 --- a/packages/xrpl/src/models/transactions/paymentChannelFund.ts +++ b/packages/xrpl/src/models/transactions/paymentChannelFund.ts @@ -56,7 +56,7 @@ export function validatePaymentChannelFund(tx: Record): void { } if (typeof tx.Amount !== 'string' && !isAmount(tx.Amount)) { - throw new ValidationError('PaymentChannelFund: invalid Amount') + throw new ValidationError('PaymentChannelFund: Amount must be an Amount') } if (tx.Expiration !== undefined && typeof tx.Expiration !== 'number') {