Skip to content

Commit

Permalink
feat: expose Kernel publicly from the KernelLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Aug 13, 2024
1 parent 8d47f09 commit c80dac7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assembly/src/library/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ impl AsRef<Library> for KernelLibrary {
}

impl KernelLibrary {
/// Returns the [Kernel] for this kernel library.
pub fn kernel(&self) -> &Kernel {
&self.kernel
}

/// Returns the inner [`MastForest`].
pub fn mast_forest(&self) -> &MastForest {
self.library.mast_forest()
Expand Down

0 comments on commit c80dac7

Please sign in to comment.