From 4819329245ec7cb261945cb4116b77163b2e7916 Mon Sep 17 00:00:00 2001 From: Yaco 0x Date: Tue, 10 Sep 2024 12:40:04 -0300 Subject: [PATCH] docs: add return type and desc to parseBlockByTimeResponse --- .../src/providers/blockmetaJsonBlockNumberProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/blocknumber/src/providers/blockmetaJsonBlockNumberProvider.ts b/packages/blocknumber/src/providers/blockmetaJsonBlockNumberProvider.ts index c1206ae..86abe8f 100644 --- a/packages/blocknumber/src/providers/blockmetaJsonBlockNumberProvider.ts +++ b/packages/blocknumber/src/providers/blockmetaJsonBlockNumberProvider.ts @@ -108,9 +108,9 @@ export class BlockmetaJsonBlockNumberProvider implements BlockNumberProvider { * * @param response an AxiosResponse of a request to BlockByTime endpoint * @param isoTimestamp the timestamp that was sent in the request - * @returns + * @returns the block number inside a BlockByTime service response */ - private parseBlockByTimeResponse(response: AxiosResponse, isoTimestamp: string) { + private parseBlockByTimeResponse(response: AxiosResponse, isoTimestamp: string): bigint { const { data } = response; // TODO: validate with zod instead const blockNumber = (data as BlockByTimeResponse)["num"];