Skip to content

Commit

Permalink
fix: transfer request claim is optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkparti committed Aug 23, 2023
1 parent 68e555f commit 7dbd62e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/handlers/transferHandler/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ const transferPostSchema = Joi.alternatives()
tokens: Joi.array().items(Joi.string()).required().unique(),
sender_wallet: Joi.alternatives().try(Joi.string()).required(),
receiver_wallet: Joi.alternatives().try(Joi.string()).required(),
// TODO: add boolean for claim, but default to false.
claim: Joi.boolean(),
claim: Joi.boolean().default(false),
}),
otherwise: Joi.object({
bundle: Joi.object({
bundle_size: Joi.number().min(1).max(10000).integer(),
}).required(),
sender_wallet: Joi.string().required(),
receiver_wallet: Joi.string().required(),
claim: Joi.boolean().required(),
claim: Joi.boolean().default(false),
}),
},
);
Expand Down

0 comments on commit 7dbd62e

Please sign in to comment.