From 8ec1e264982941c03add70beb2bd52d88bd7d163 Mon Sep 17 00:00:00 2001 From: Aleksandar Drazhev Date: Tue, 22 Oct 2024 17:38:06 +0300 Subject: [PATCH 1/2] feat: include the default extrinsics on the latest blocks list --- src/utils/papi/index.ts | 2 +- src/views/explorer/components/extrinsicsList/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/papi/index.ts b/src/utils/papi/index.ts index 64eb8674..e51102c5 100644 --- a/src/utils/papi/index.ts +++ b/src/utils/papi/index.ts @@ -119,7 +119,7 @@ export const subscribeToBestBlocks = ({ Promise.allSettled(promises).then((results) => { results.forEach((blockData) => { if (blockData.status === 'fulfilled') { - const blockExtrinsics = (blockData?.value.body?.extrinsics?.slice(2) ?? []) + const blockExtrinsics = (blockData?.value.body?.extrinsics ?? []) .reverse() .map((extrinsic) => { const { id, blockNumber, extrinsicData, timestamp, isSuccess } = extrinsic; diff --git a/src/views/explorer/components/extrinsicsList/index.tsx b/src/views/explorer/components/extrinsicsList/index.tsx index 6033ee95..fff9bdda 100644 --- a/src/views/explorer/components/extrinsicsList/index.tsx +++ b/src/views/explorer/components/extrinsicsList/index.tsx @@ -66,7 +66,7 @@ export const ExtrinsicsList = polymorphicComponent<'div'>((_props, ref) => { useEffect(() => { const extrinsics = Array.from(blocksData.values()) - .flatMap((block) => block?.extrinsics ?? []) + .flatMap((block) => (block?.extrinsics?.slice(0, -2) ?? [])) .reverse(); setSignedExtrinsics(extrinsics); From dab5cfc5e8a1f05ea5ccba84c77cc4d6340453e0 Mon Sep 17 00:00:00 2001 From: Aleksandar Drazhev Date: Thu, 24 Oct 2024 16:21:02 +0300 Subject: [PATCH 2/2] removing the row client extrinsics from signed extrinsics --- src/views/signedExtrinsics/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/signedExtrinsics/index.tsx b/src/views/signedExtrinsics/index.tsx index a3b1a0f5..92061327 100644 --- a/src/views/signedExtrinsics/index.tsx +++ b/src/views/signedExtrinsics/index.tsx @@ -65,7 +65,7 @@ const SignedExtrinsics = () => { useEffect(() => { const extrinsics = Array.from(blocksData.values()) - .flatMap((block) => block?.extrinsics ?? []) + .flatMap((block) => block?.extrinsics?.slice(0, -2) ?? []) .reverse(); setSignedExtrinsics(extrinsics);