fix: the push was in the wrong place
This commit is contained in:
parent
cbaf629645
commit
01f2142606
|
@ -187,6 +187,10 @@ where
|
||||||
|
|
||||||
match options.code_gen_mode {
|
match options.code_gen_mode {
|
||||||
CodeGenMode::Build(uplc_dump) => {
|
CodeGenMode::Build(uplc_dump) => {
|
||||||
|
if validators.is_empty() {
|
||||||
|
self.warnings.push(Warning::NoValidators);
|
||||||
|
}
|
||||||
|
|
||||||
let programs = self.code_gen(validators)?;
|
let programs = self.code_gen(validators)?;
|
||||||
|
|
||||||
self.write_build_outputs(programs, uplc_dump)?;
|
self.write_build_outputs(programs, uplc_dump)?;
|
||||||
|
@ -401,7 +405,7 @@ where
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn validate_validators(&mut self) -> Result<Vec<(PathBuf, String, TypedFunction)>, Error> {
|
fn validate_validators(&self) -> Result<Vec<(PathBuf, String, TypedFunction)>, Error> {
|
||||||
let mut errors = Vec::new();
|
let mut errors = Vec::new();
|
||||||
let mut validators = Vec::new();
|
let mut validators = Vec::new();
|
||||||
|
|
||||||
|
@ -464,10 +468,6 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if validators.is_empty() {
|
|
||||||
self.warnings.push(Warning::NoValidators);
|
|
||||||
}
|
|
||||||
|
|
||||||
if errors.is_empty() {
|
if errors.is_empty() {
|
||||||
Ok(validators)
|
Ok(validators)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue