Skip to content

Commit 5a1a2a1

Browse files
committed
update PR #23117
1 parent aeed6b6 commit 5a1a2a1

1 file changed

Lines changed: 5 additions & 20 deletions

File tree

noir-projects/aztec-nr/aztec/src/test/helpers/test_environment.nr

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ impl<let N: u32, let T: u32> CallPrivateOptions<N, T> {
159159
self,
160160
additional_scopes: [AztecAddress; N_2],
161161
) -> CallPrivateOptions<N_2, T> {
162-
CallPrivateOptions {
163-
additional_scopes,
164-
authorized_utility_call_targets: self.authorized_utility_call_targets,
165-
}
162+
CallPrivateOptions { additional_scopes, authorized_utility_call_targets: self.authorized_utility_call_targets }
166163
}
167164

168165
/// Authorizes cross-contract utility calls to the given target contracts during this call.
@@ -173,10 +170,7 @@ impl<let N: u32, let T: u32> CallPrivateOptions<N, T> {
173170
self,
174171
targets: [AztecAddress; T_2],
175172
) -> CallPrivateOptions<N, T_2> {
176-
CallPrivateOptions {
177-
additional_scopes: self.additional_scopes,
178-
authorized_utility_call_targets: targets,
179-
}
173+
CallPrivateOptions { additional_scopes: self.additional_scopes, authorized_utility_call_targets: targets }
180174
}
181175
}
182176

@@ -214,10 +208,7 @@ impl<let S: u32, let T: u32> ViewPrivateOptions<S, T> {
214208
self,
215209
additional_scopes: [AztecAddress; S2],
216210
) -> ViewPrivateOptions<S2, T> {
217-
ViewPrivateOptions {
218-
additional_scopes,
219-
authorized_utility_call_targets: self.authorized_utility_call_targets,
220-
}
211+
ViewPrivateOptions { additional_scopes, authorized_utility_call_targets: self.authorized_utility_call_targets }
221212
}
222213

223214
/// Authorizes cross-contract utility calls to the given target contracts during this call.
@@ -228,10 +219,7 @@ impl<let S: u32, let T: u32> ViewPrivateOptions<S, T> {
228219
self,
229220
targets: [AztecAddress; T_2],
230221
) -> ViewPrivateOptions<S, T_2> {
231-
ViewPrivateOptions {
232-
additional_scopes: self.additional_scopes,
233-
authorized_utility_call_targets: targets,
234-
}
222+
ViewPrivateOptions { additional_scopes: self.additional_scopes, authorized_utility_call_targets: targets }
235223
}
236224
}
237225

@@ -773,10 +761,7 @@ impl TestEnvironment {
773761
/// let contract_addr = env.deploy("SampleContract").without_initializer();
774762
/// let return_value = env.execute_utility(SampleContract::at(contract_addr).sample_utility_function());
775763
/// ```
776-
pub unconstrained fn execute_utility<let M: u32, let N: u32, T>(
777-
self: Self,
778-
call: UtilityCall<M, N, T>,
779-
) -> T
764+
pub unconstrained fn execute_utility<let M: u32, let N: u32, T>(self: Self, call: UtilityCall<M, N, T>) -> T
780765
where
781766
T: Deserialize,
782767
{

0 commit comments

Comments
 (0)