From 92f5bf529f840c2e5f77fd2e189dcd4b4ffd2f6d Mon Sep 17 00:00:00 2001 From: Riley-Kilgore Date: Tue, 24 Sep 2024 07:29:45 -0700 Subject: [PATCH] Generate address on else and spend validators; uses title --- crates/aiken-project/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/aiken-project/src/lib.rs b/crates/aiken-project/src/lib.rs index f2fa4f87..25943a87 100644 --- a/crates/aiken-project/src/lib.rs +++ b/crates/aiken-project/src/lib.rs @@ -476,8 +476,10 @@ where blueprint.with_validator(title, when_too_many, when_missing, |validator| { // Make sure we're not calculating the address for a minting validator - if validator.datum.is_none() { - return Err(blueprint::error::Error::UnexpectedMintingValidator.into()); + if let Some(title) = title { + if !title.ends_with("else") && !title.ends_with("spend") { + return Err(blueprint::error::Error::UnexpectedMintingValidator.into()); + } } let n = validator.parameters.len();