Generated wrapped schemas for multi-validators' redeemers
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user