Commit e0366c9
authored
fix: nargo fmt for backported nested_utility tests (#23117)
## Summary
CI3 on PR #23080 failed in the `noir-projects build` `prep` step because
the new `nested_utility_contract/src/test.nr` (added by the backport of
#23064 — feat(txe) authorize cross-contract utility calls) wasn't
formatted by v4-next's pinned nargo. Three statements were committed
multi-line that v4-next's `nargo fmt --check` wants on a single line.
CI log: http://ci.aztec-labs.com/0ef270f34a64bc9b
## Fix
Apply `nargo fmt` exactly per the CI diff:
- `same_contract_utility_call_from_private_succeeds`: collapse the `let
result: Field =
env.call_private(...)` to one line.
- `cross_contract_utility_call_from_utility_denied_by_default`: collapse
the `env.execute_utility(
...,
)` to one line.
- `cross_contract_utility_call_from_private_denied_by_default`: collapse
the `env.call_private(
account,
...,
)` to one line.
The two `*_with_authorization` tests already use multi-line because
their bodies are too wide for one line — left unchanged.
## Test plan
- CI3 on PR #23080 should clear the `prep` step (`noir-projects build`)
once this lands on `backport-to-v4-next-staging`.
ClaudeBox log: https://claudebox.work/s/ea70ef48e7a85dfe?run=32 files changed
Lines changed: 8 additions & 29 deletions
File tree
- noir-projects
- aztec-nr/aztec/src/test/helpers
- noir-contracts/contracts/test/nested_utility_contract/src
Lines changed: 5 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 162 | + | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
| |||
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 173 | + | |
180 | 174 | | |
181 | 175 | | |
182 | 176 | | |
| |||
214 | 208 | | |
215 | 209 | | |
216 | 210 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 211 | + | |
221 | 212 | | |
222 | 213 | | |
223 | 214 | | |
| |||
228 | 219 | | |
229 | 220 | | |
230 | 221 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 222 | + | |
235 | 223 | | |
236 | 224 | | |
237 | 225 | | |
| |||
773 | 761 | | |
774 | 762 | | |
775 | 763 | | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
| 764 | + | |
780 | 765 | | |
781 | 766 | | |
782 | 767 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 42 | + | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
| |||
0 commit comments