Skip to content

Commit 3b19010

Browse files
authored
Merge pull request #522 from MitchyCola/set-alonzo-format
Add `set_prefer_alonzo_format` to `AuxiliaryData`
2 parents c13eac3 + cbff3a8 commit 3b19010

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rust/src/metadata.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,14 @@ impl AuxiliaryData {
408408
pub fn set_plutus_scripts(&mut self, plutus_scripts: &PlutusScripts) {
409409
self.plutus_scripts = Some(plutus_scripts.clone())
410410
}
411+
412+
pub fn prefer_alonzo_format(&self) -> bool {
413+
self.prefer_alonzo_format.clone()
414+
}
415+
416+
pub fn set_prefer_alonzo_format(&mut self, prefer: bool) {
417+
self.prefer_alonzo_format = prefer
418+
}
411419
}
412420

413421
// encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata

0 commit comments

Comments
 (0)