fix: correct V1 to_plutus_data() for txout with no datum hash
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- **aiken**: `check` now also runs and reports on any `test` found in the project
|
- **aiken**: `check` now also runs and reports on any `test` found in the project
|
||||||
|
- **aiken**: fix Plutus V1 `to_plutus_data()` for post-alonzo txout with no datum hash
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ impl ToPlutusData for TxOut {
|
|||||||
post_alonzo_output.value.to_plutus_data(),
|
post_alonzo_output.value.to_plutus_data(),
|
||||||
match post_alonzo_output.datum_option {
|
match post_alonzo_output.datum_option {
|
||||||
Some(DatumOption::Hash(hash)) => Some(hash).to_plutus_data(),
|
Some(DatumOption::Hash(hash)) => Some(hash).to_plutus_data(),
|
||||||
_ => None::<DatumOption>.to_plutus_data(),
|
_ => None::<Option<Hash<32>>>.to_plutus_data(),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user