Skip to content

Commit

Permalink
Implement block to date (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon authored Jun 28, 2024
1 parent 436703b commit c341f34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/extended-sdk/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ export class ExtendedSDKClient extends VocdoniSDKClient {
return blockInfo.reduce((prev, cur) => prev.concat(cur), []).reverse()
})
}

blockToDate = (height: number): ReturnType<typeof ChainAPI.blockToDate> => {
return ChainAPI.blockToDate(this.url, height)
}
}

0 comments on commit c341f34

Please sign in to comment.