@@ -24,28 +24,22 @@ unconstrained fn same_contract_utility_call_from_utility_succeeds() {
2424unconstrained fn same_contract_utility_call_from_private_succeeds () {
2525 let (env , account , addr_a , _ ) = setup ();
2626
27- let result : Field =
28- env .call_private (account , NestedUtility ::at (addr_a ).pow_private (2 , 10 ));
27+ let result : Field = env .call_private (account , NestedUtility ::at (addr_a ).pow_private (2 , 10 ));
2928 assert_eq (result , 1024 );
3029}
3130
3231#[test(should_fail_with = "Cross-contract utility call denied")]
3332unconstrained fn cross_contract_utility_call_from_utility_denied_by_default () {
3433 let (env , _ , addr_a , addr_b ) = setup ();
3534
36- let _ : Field = env .execute_utility (
37- NestedUtility ::at (addr_a ).delegate_pow_utility (addr_b , 2 , 3 ),
38- );
35+ let _ : Field = env .execute_utility (NestedUtility ::at (addr_a ).delegate_pow_utility (addr_b , 2 , 3 ));
3936}
4037
4138#[test(should_fail_with = "Cross-contract utility call denied")]
4239unconstrained fn cross_contract_utility_call_from_private_denied_by_default () {
4340 let (env , account , addr_a , addr_b ) = setup ();
4441
45- let _ : Field = env .call_private (
46- account ,
47- NestedUtility ::at (addr_a ).delegate_pow_private (addr_b , 2 , 3 ),
48- );
42+ let _ : Field = env .call_private (account , NestedUtility ::at (addr_a ).delegate_pow_private (addr_b , 2 , 3 ));
4943}
5044
5145#[test]
0 commit comments