chore(sdk): fix docs to match generic tx type (#13316)

This commit is contained in:
Emilia Hane
2024-12-11 15:46:07 -05:00
committed by GitHub
parent 5b19badd9b
commit 3d12a4eafa

View File

@ -540,7 +540,7 @@ impl<N: NodePrimitives> CanonicalInMemoryState<N> {
self.inner.in_memory_state.head_state().into_iter().flat_map(|head| head.iter())
}
/// Returns a `TransactionSigned` for the given `TxHash` if found.
/// Returns [`SignedTransaction`] type for the given `TxHash` if found.
pub fn transaction_by_hash(&self, hash: TxHash) -> Option<N::SignedTx>
where
N::SignedTx: Encodable2718,
@ -560,8 +560,8 @@ impl<N: NodePrimitives> CanonicalInMemoryState<N> {
None
}
/// Returns a tuple with `TransactionSigned` and `TransactionMeta` for the
/// given `TxHash` if found.
/// Returns a tuple with [`SignedTransaction`] type and [`TransactionMeta`] for the
/// given [`TxHash`] if found.
pub fn transaction_by_hash_with_meta(
&self,
tx_hash: TxHash,