From 325a7b7b45567c3b4e38abe925fcab9f75ecc226 Mon Sep 17 00:00:00 2001 From: jmhrpr Date: Thu, 15 Dec 2022 17:17:36 +0000 Subject: [PATCH] fix: correct V1 to_plutus_data() for txout with no datum hash --- CHANGELOG.md | 1 + crates/uplc/src/tx/to_plutus_data.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a86bd3af..8f5da849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ ### Changed - **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 diff --git a/crates/uplc/src/tx/to_plutus_data.rs b/crates/uplc/src/tx/to_plutus_data.rs index e8aea41d..3ed82396 100644 --- a/crates/uplc/src/tx/to_plutus_data.rs +++ b/crates/uplc/src/tx/to_plutus_data.rs @@ -296,7 +296,7 @@ impl ToPlutusData for TxOut { post_alonzo_output.value.to_plutus_data(), match post_alonzo_output.datum_option { Some(DatumOption::Hash(hash)) => Some(hash).to_plutus_data(), - _ => None::.to_plutus_data(), + _ => None::>>.to_plutus_data(), }, ], ),