Skip to content

Commit

Permalink
fix!: Fix returning of structs in ACIR (#1058)
Browse files Browse the repository at this point in the history
* Fix returning of structs in ACIR

* fmt
  • Loading branch information
jfecher authored Mar 28, 2023
1 parent bdcfdf2 commit 91bd471
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/noirc_evaluator/src/ssa/acir_gen/operations/return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ pub(crate) fn evaluate(
witnesses.push(witness);
}
evaluator.public_inputs.extend(witnesses.clone());
evaluator.param_witnesses.insert(MAIN_RETURN_NAME.to_owned(), witnesses);
evaluator
.param_witnesses
.entry(MAIN_RETURN_NAME.to_owned())
.or_default()
.append(&mut witnesses);
}

Ok(None)
Expand Down

0 comments on commit 91bd471

Please sign in to comment.