Skip to content

Commit

Permalink
distinguish between multi vs single validator case in blueprint schem…
Browse files Browse the repository at this point in the history
…a generation.
  • Loading branch information
KtorZ authored and rvcas committed Mar 17, 2023
1 parent 22880a3 commit 61113cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/aiken-project/src/blueprint/validator.rs
Expand Up @@ -107,9 +107,12 @@ impl Validator<Reference, Annotated<Schema>> {
module.code.clone(),
),
})
.map(|schema| Argument {
title: Some(redeemer.arg_name.get_label()),
schema,
.map(|schema| match datum {
Some(..) if def.other_fun.is_some() => todo!(),
_ => Argument {
title: Some(redeemer.arg_name.get_label()),
schema,
},
})?,
program: generator.generate(def).try_into().unwrap(),
definitions,
Expand Down

0 comments on commit 61113cd

Please sign in to comment.