distinguish between multi vs single validator case in blueprint schema generation.

This commit is contained in:
KtorZ 2023-03-17 15:22:35 +01:00 committed by rvcas
parent 22880a300f
commit 61113cd7b9
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 6 additions and 3 deletions

View File

@ -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,