distinguish between multi vs single validator case in blueprint schema generation.
This commit is contained in:
parent
22880a300f
commit
61113cd7b9
|
@ -107,9 +107,12 @@ impl Validator<Reference, Annotated<Schema>> {
|
||||||
module.code.clone(),
|
module.code.clone(),
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
.map(|schema| Argument {
|
.map(|schema| match datum {
|
||||||
title: Some(redeemer.arg_name.get_label()),
|
Some(..) if def.other_fun.is_some() => todo!(),
|
||||||
schema,
|
_ => Argument {
|
||||||
|
title: Some(redeemer.arg_name.get_label()),
|
||||||
|
schema,
|
||||||
|
},
|
||||||
})?,
|
})?,
|
||||||
program: generator.generate(def).try_into().unwrap(),
|
program: generator.generate(def).try_into().unwrap(),
|
||||||
definitions,
|
definitions,
|
||||||
|
|
Loading…
Reference in New Issue