Redact compiledCode & hash in generated blueprint tests

The point of those tests is to ensure that blueprints are generated
  properly, irrespective of the generated code. It is annoying to
  constantly get those test failing every time we introduce an
  optimization or something that would slightly change the generated
  UPLC.
This commit is contained in:
KtorZ
2024-08-03 13:26:58 +02:00
committed by Kasey
parent 8a461d5bd5
commit f5c4e185d4
15 changed files with 86 additions and 29 deletions

View File

@@ -365,11 +365,9 @@ pub fn find_introduced_variables(air_tree: &AirTree) -> Vec<String> {
.cloned()
.chain(snd_name.iter().cloned())
.collect_vec(),
AirTree::PairAccessor { fst, snd, .. } => fst
.iter()
.cloned()
.chain(snd.iter().cloned())
.collect_vec(),
AirTree::PairAccessor { fst, snd, .. } => {
fst.iter().cloned().chain(snd.iter().cloned()).collect_vec()
}
AirTree::PairClause {
fst_name, snd_name, ..
} => fst_name