fix(alonzo): Contemplate aux data with multiple plutus scripts (#19)
This commit is contained in:
parent
539a17e132
commit
3aa234d019
2 changed files with 5 additions and 1 deletions
|
|
@ -1230,7 +1230,7 @@ pub struct AlonzoAuxiliaryData {
|
|||
#[n(1)]
|
||||
pub native_scripts: Option<MaybeIndefArray<NativeScript>>,
|
||||
#[n(2)]
|
||||
pub plutus_scripts: Option<PlutusScript>,
|
||||
pub plutus_scripts: Option<Vec<PlutusScript>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||
|
|
@ -1423,6 +1423,9 @@ mod tests {
|
|||
include_str!("test_data/test10.block"),
|
||||
// peculiar block with protocol update params
|
||||
include_str!("test_data/test11.block"),
|
||||
// peculiar block with decoding issue
|
||||
// https://github.com/txpipe/oura/issues/37
|
||||
include_str!("test_data/test12.block"),
|
||||
];
|
||||
|
||||
for (idx, block_str) in test_blocks.iter().enumerate() {
|
||||
|
|
|
|||
1
pallas-alonzo/src/test_data/test12.block
Normal file
1
pallas-alonzo/src/test_data/test12.block
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue