From bcbafc28dbbb30a7b5f07cd01be1cb43a7854e53 Mon Sep 17 00:00:00 2001 From: Lukasz Rzasik Date: Mon, 22 Jul 2024 14:03:30 +0200 Subject: [PATCH] Implement `QueryablePayload::transaction` for `Payload` --- types/src/v0/impls/block/full_payload/payload.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/src/v0/impls/block/full_payload/payload.rs b/types/src/v0/impls/block/full_payload/payload.rs index 4785a0b36b..bbb75399a4 100644 --- a/types/src/v0/impls/block/full_payload/payload.rs +++ b/types/src/v0/impls/block/full_payload/payload.rs @@ -219,6 +219,14 @@ impl QueryablePayload for Payload { TxProof::new(index, self, &common) } + + fn transaction( + &self, + _meta: &Self::Metadata, + index: &Self::TransactionIndex, + ) -> Option { + self.transaction(index) + } } impl std::fmt::Display for Payload {