Generate address on else and spend validators; uses title
This commit is contained in:
parent
7c6f3278ba
commit
92f5bf529f
|
@ -476,9 +476,11 @@ where
|
||||||
|
|
||||||
blueprint.with_validator(title, when_too_many, when_missing, |validator| {
|
blueprint.with_validator(title, when_too_many, when_missing, |validator| {
|
||||||
// Make sure we're not calculating the address for a minting validator
|
// Make sure we're not calculating the address for a minting validator
|
||||||
if validator.datum.is_none() {
|
if let Some(title) = title {
|
||||||
|
if !title.ends_with("else") && !title.ends_with("spend") {
|
||||||
return Err(blueprint::error::Error::UnexpectedMintingValidator.into());
|
return Err(blueprint::error::Error::UnexpectedMintingValidator.into());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let n = validator.parameters.len();
|
let n = validator.parameters.len();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue