Skip to content

Commit

Permalink
fix(blocks): latest issue (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 authored Nov 4, 2024
1 parent c4e078e commit e943a04
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"vite-plugin-dts": "^3.8.2"
},
"dependencies": {
"@covalenthq/client-sdk": "^2.2.0",
"@covalenthq/client-sdk": "^2.2.1",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Molecules/Block/BlocksList/BlocksList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export const BlocksList: React.FC<BlocksListProps> = ({
const { data, ...error } =
await goldrushClient.BaseService.getBlockHeightsByPage(
chain_name,
timestampParser(new Date(), "YYYY MM DD"),
"2100-01-01",
timestampParser(new Date(), "YYYY-MM-DD"),
"latest",
{
pageNumber: _pagination?.page_number ?? page_number,
pageSize: _pagination?.page_size ?? page_size,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Molecules/Block/LatestBlocks/LatestBlocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const LatestBlocks: React.FC<LatestBlocksProps> = ({
const { data, ...error } =
await goldrushClient.BaseService.getBlockHeightsByPage(
chain_name,
timestampParser(new Date(), "YYYY MM DD"),
"2100-01-01",
timestampParser(new Date(), "YYYY-MM-DD"),
"latest",
{
pageSize: 5,
},
Expand Down

0 comments on commit e943a04

Please sign in to comment.