From 3e27281a3568c7979bb9a185a2081f9e571e5b07 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 13 Jul 2023 12:51:34 -0400 Subject: [PATCH] fix: add map to return data property --- src/node/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/index.ts b/src/node/index.ts index 9acf96f..33f926e 100644 --- a/src/node/index.ts +++ b/src/node/index.ts @@ -12,7 +12,7 @@ function createDefaultClient(beaconUrl: string): Client { await consensusClient.get( `/eth/v1/beacon/light_client/updates?start_period=${args.start}&count=${args.count}`, ) - ).data; + ).data.map((item) => item.data); }), beaconUrl, async optimisticUpdateCallback() {