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 committed Mar 17, 2023
1 parent f2ed197 commit 8bc800d
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 8bc800d

Please sign in to comment.