Skip to content

Commit

Permalink
Merge pull request #28 from EspressoSystems/ag/typesies
Browse files Browse the repository at this point in the history
Implement BuilderTransaction for Transaction
  • Loading branch information
QuentinI authored Jul 26, 2024
2 parents c1e60e7 + 7be3127 commit b515e61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ pub trait BuilderTransaction {
fn namespace_id(&self) -> Self::NamespaceId;
}

impl BuilderTransaction for espresso_types::v0_3::Transaction {
type NamespaceId = espresso_types::v0_3::NamespaceId;
fn namespace_id(&self) -> Self::NamespaceId {
self.namespace()
}
}

// It holds all the necessary information for a block
#[derive(Debug)]
pub struct BlockInfo<TYPES: NodeType>
Expand Down

0 comments on commit b515e61

Please sign in to comment.