Generated wrapped schemas for multi-validators' redeemers

This commit is contained in:
KtorZ
2023-03-17 16:30:30 +01:00
committed by rvcas
parent bb6fc76971
commit bc690c5410
4 changed files with 40 additions and 19 deletions

View File

@@ -521,11 +521,7 @@ impl<'comments> Formatter<'comments> {
))
.nest(INDENT)
.group()
.append(if other_fun.is_some() {
line()
} else {
nil()
})
.append(if other_fun.is_some() { line() } else { nil() })
.append(
other_fun
.as_ref()

View File

@@ -306,8 +306,8 @@ pub fn validator_parser() -> impl Parser<Token, ast::UntypedDefinition, Error =
ast::UntypedDefinition::Validator(ast::Validator {
doc: None,
fun: functions
.next()
.expect("unwrapping safe because there's 'at_least(1)' function"),
.next()
.expect("unwrapping safe because there's 'at_least(1)' function"),
other_fun: functions.next(),
location: Span {
start: span.start,