Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
fix: validate schema param
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchaymittal committed May 20, 2021
1 parent 3113621 commit f089572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/engine/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ export class VectorEngine implements IVectorEngine {
const method = "withdrawRetry";
const methodId = getRandomBytes32();
this.logger.info({ params, method, methodId }, "Method started");
const validate = ajv.compile(EngineParams.WithdrawSchema);
const validate = ajv.compile(EngineParams.WithdrawRetrySchema);
const valid = validate(params);
if (!valid) {
return Result.fail(
Expand Down

0 comments on commit f089572

Please sign in to comment.