fix: Provide access to PlutusScript bytes (#102)
This commit is contained in:
parent
90b2ec90dc
commit
6d5b2762c0
1 changed files with 7 additions and 1 deletions
|
|
@ -910,7 +910,13 @@ impl minicbor::encode::Encode for NativeScript {
|
||||||
|
|
||||||
#[derive(Encode, Decode, Debug, PartialEq)]
|
#[derive(Encode, Decode, Debug, PartialEq)]
|
||||||
#[cbor(transparent)]
|
#[cbor(transparent)]
|
||||||
pub struct PlutusScript(#[n(0)] ByteVec);
|
pub struct PlutusScript(#[n(0)] pub ByteVec);
|
||||||
|
|
||||||
|
impl AsRef<[u8]> for PlutusScript {
|
||||||
|
fn as_ref(&self) -> &[u8] {
|
||||||
|
self.0.as_slice()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
big_int = int / big_uint / big_nint ; New
|
big_int = int / big_uint / big_nint ; New
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue