Skip to content

Commit

Permalink
Update lib/validate.js
Browse files Browse the repository at this point in the history
Co-authored-by: ekzyis <[email protected]>
  • Loading branch information
riccardobl and ekzyis authored Dec 25, 2024
1 parent cc993ff commit efcd9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const bolt12OfferSchema = string().trim().matches(/^lno1/, 'invalid bolt1
export const bolt12InvoiceSchema = string().trim().matches(/^lni1/, 'invalid bolt12 invoice')
export const bolt12WithdrawSchema = object({
offer: bolt12OfferSchema.required('required'),
amount: intValidator.required('required').positive('must be positive').min(1, 'must be at least 1'),
amount: intValidator.required('required').min(1, 'must be at least 1'),
maxFee: intValidator.required('required').min(0, 'must be at least 0'),
comment: string().max(128, 'must be less than 128')
})
Expand Down

0 comments on commit efcd9a2

Please sign in to comment.