Skip to content

Commit

Permalink
docs: add return type and desc to parseBlockByTimeResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyaco committed Sep 10, 2024
1 parent e2d952f commit 4819329
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 4819329

Please sign in to comment.