Skip to content

Commit

Permalink
fix overly restrictive feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Voxelot committed Mar 22, 2024
1 parent c28f13f commit b16688a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions crates/types/src/entities/relayer/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ pub struct RelayedTransactionV1 {
pub struct RelayedTransactionId(Bytes32);

impl RelayedTransaction {
#[cfg(any(test, feature = "test-helpers"))]
/// The hash of the relayed transaction
pub fn id(&self) -> RelayedTransactionId {
match &self {
RelayedTransaction::V1(tx) => tx.id(),
}
}

/// Get the DA height that originated this transaction from L1
pub fn da_height(&self) -> DaBlockHeight {
match self {
Expand Down Expand Up @@ -103,13 +109,6 @@ impl RelayedTransaction {
}
}
}

/// The hash of the relayed transaction
pub fn id(&self) -> RelayedTransactionId {
match &self {
RelayedTransaction::V1(tx) => tx.id(),
}
}
}

impl RelayedTransactionV1 {
Expand Down

0 comments on commit b16688a

Please sign in to comment.