Skip to content

Commit

Permalink
chore: fix api handler used during testing (#7047)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored and g11tech committed Aug 27, 2024
1 parent cb7878b commit 8ccbed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/test/utils/node/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function getApiFromServerHandlers(api: BeaconApiMethods): ApiClient {
return async (args: unknown) => {
try {
const apiResponse = new ApiResponse({} as any, null, new Response(null, {status: HttpStatusCode.OK}));
const result = await api(args, {});
const result = await api.call(apiModule, args, {});
apiResponse.value = () => result.data;
apiResponse.meta = () => result.meta;
return apiResponse;
Expand Down

0 comments on commit 8ccbed7

Please sign in to comment.