diff --git a/CHANGELOG.md b/CHANGELOG.md index 53a6f98f..d4ccfccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v1.1.8 - UNRELEASED + +### Changed + +- **aiken**: Fix `aiken blueprint policy` computing hashes as PlutusV1, instead of relying on the plutus version from the Blueprint. @KtorZ + ## v1.1.7 - 2024-11-19 ### Changed diff --git a/crates/uplc/src/ast.rs b/crates/uplc/src/ast.rs index ae73cb6f..17bcf682 100644 --- a/crates/uplc/src/ast.rs +++ b/crates/uplc/src/ast.rs @@ -239,7 +239,7 @@ impl<'a> Deserialize<'a> for SerializableProgram { .and_then(|program| { let cbor = || program.to_cbor().unwrap().into(); - if conway::PlutusScript::<1>(cbor()).compute_hash().to_string() == hash { + if conway::PlutusScript::<3>(cbor()).compute_hash().to_string() == hash { return Ok(SerializableProgram::PlutusV3Program(program)); } @@ -247,7 +247,7 @@ impl<'a> Deserialize<'a> for SerializableProgram { return Ok(SerializableProgram::PlutusV2Program(program)); } - if conway::PlutusScript::<3>(cbor()).compute_hash().to_string() == hash { + if conway::PlutusScript::<1>(cbor()).compute_hash().to_string() == hash { return Ok(SerializableProgram::PlutusV1Program(program)); }