Skip to content

Commit

Permalink
Fix api handler used during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jun 19, 2024
1 parent 6198123 commit a7a047f
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 @@ -96,7 +96,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 a7a047f

Please sign in to comment.