fix: add map to return data property

This commit is contained in:
Derrick Hammer 2023-07-13 12:51:34 -04:00
parent 5e426327ff
commit 3e27281a35
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function createDefaultClient(beaconUrl: string): Client {
await consensusClient.get( await consensusClient.get(
`/eth/v1/beacon/light_client/updates?start_period=${args.start}&count=${args.count}`, `/eth/v1/beacon/light_client/updates?start_period=${args.start}&count=${args.count}`,
) )
).data; ).data.map((item) => item.data);
}), }),
beaconUrl, beaconUrl,
async optimisticUpdateCallback() { async optimisticUpdateCallback() {