Skip to content

Commit

Permalink
chore(sdk): fix docs to match generic tx type (paradigmxyz#13316)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Dec 11, 2024
1 parent 5b19bad commit 3d12a4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/chain-state/src/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 3d12a4e

Please sign in to comment.