diff --git a/package-lock.json b/package-lock.json index ad8e3115..fba1c4a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.4", "license": "Apache-2.0", "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", @@ -943,9 +943,9 @@ "dev": true }, "node_modules/@covalenthq/client-sdk": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@covalenthq/client-sdk/-/client-sdk-2.2.0.tgz", - "integrity": "sha512-qsUwb/Phw3lriEqHfvTDQd1/+ORkkeNTJdvHHnIuiNk9VX9DUBH04PHVzmapCNAF6+X0stzT2XNvD6XhloaK9Q==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@covalenthq/client-sdk/-/client-sdk-2.2.1.tgz", + "integrity": "sha512-lUfJw8Ce/aWHHHj+SQGUKQ5XmigR/HLycmYKh+/Go0Hg5BfQboGHFPcwEQjiEdH8z09NV2B0qloC9Tbe1/pxBA==", "dependencies": { "big.js": "^6.2.1" } diff --git a/package.json b/package.json index 10a09001..a2fa9095 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/Molecules/Block/BlocksList/BlocksList.tsx b/src/components/Molecules/Block/BlocksList/BlocksList.tsx index 8a9de4a5..d28a3f7d 100644 --- a/src/components/Molecules/Block/BlocksList/BlocksList.tsx +++ b/src/components/Molecules/Block/BlocksList/BlocksList.tsx @@ -42,8 +42,8 @@ export const BlocksList: React.FC = ({ 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, diff --git a/src/components/Molecules/Block/LatestBlocks/LatestBlocks.tsx b/src/components/Molecules/Block/LatestBlocks/LatestBlocks.tsx index 8aa1b779..e5625e5f 100644 --- a/src/components/Molecules/Block/LatestBlocks/LatestBlocks.tsx +++ b/src/components/Molecules/Block/LatestBlocks/LatestBlocks.tsx @@ -36,8 +36,8 @@ export const LatestBlocks: React.FC = ({ 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, },