Skip to content

Commit

Permalink
add script method to ScriptRef struct (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
baymac authored Jul 27, 2023
1 parent 73bde24 commit 43af7be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,10 @@ impl ScriptRef {
pub fn plutus_script(&self) -> Option<PlutusScript> {
self.0.as_plutus().clone()
}

pub fn script(&self) -> Script {
self.0.clone()
}
}

#[derive(
Expand Down

0 comments on commit 43af7be

Please sign in to comment.