@@ -58,11 +58,8 @@ async fn can_transfer_hbar_with_pre_tx_allowance_hook() -> anyhow::Result<()> {
5858 // Create sender account with hook
5959 let spec = EvmHookSpec :: new ( Some ( contract_id) ) ;
6060 let lambda_hook = LambdaEvmHook :: new ( spec, vec ! [ ] ) ;
61- let hook_details = HookCreationDetails :: new (
62- HookExtensionPoint :: AccountAllowanceHook ,
63- 1 ,
64- Some ( lambda_hook) ,
65- ) ;
61+ let hook_details =
62+ HookCreationDetails :: new ( HookExtensionPoint :: AccountAllowanceHook , 1 , Some ( lambda_hook) ) ;
6663
6764 let sender_receipt = AccountCreateTransaction :: new ( )
6865 . key ( sender_key. public_key ( ) )
@@ -126,11 +123,8 @@ async fn can_transfer_hbar_with_pre_post_tx_allowance_hook() -> anyhow::Result<(
126123 // Create sender account with hook
127124 let spec = EvmHookSpec :: new ( Some ( contract_id) ) ;
128125 let lambda_hook = LambdaEvmHook :: new ( spec, vec ! [ ] ) ;
129- let hook_details = HookCreationDetails :: new (
130- HookExtensionPoint :: AccountAllowanceHook ,
131- 1 ,
132- Some ( lambda_hook) ,
133- ) ;
126+ let hook_details =
127+ HookCreationDetails :: new ( HookExtensionPoint :: AccountAllowanceHook , 1 , Some ( lambda_hook) ) ;
134128
135129 let sender_receipt = AccountCreateTransaction :: new ( )
136130 . key ( sender_key. public_key ( ) )
@@ -195,11 +189,8 @@ async fn can_transfer_fungible_token_with_hook() -> anyhow::Result<()> {
195189 // Create sender account with hook
196190 let spec = EvmHookSpec :: new ( Some ( contract_id) ) ;
197191 let lambda_hook = LambdaEvmHook :: new ( spec, vec ! [ ] ) ;
198- let hook_details = HookCreationDetails :: new (
199- HookExtensionPoint :: AccountAllowanceHook ,
200- 1 ,
201- Some ( lambda_hook) ,
202- ) ;
192+ let hook_details =
193+ HookCreationDetails :: new ( HookExtensionPoint :: AccountAllowanceHook , 1 , Some ( lambda_hook) ) ;
203194
204195 let sender_receipt = AccountCreateTransaction :: new ( )
205196 . key ( sender_key. public_key ( ) )
@@ -285,11 +276,8 @@ async fn can_transfer_nft_with_sender_hook() -> anyhow::Result<()> {
285276 // Create sender account with hook
286277 let spec = EvmHookSpec :: new ( Some ( contract_id) ) ;
287278 let lambda_hook = LambdaEvmHook :: new ( spec, vec ! [ ] ) ;
288- let hook_details = HookCreationDetails :: new (
289- HookExtensionPoint :: AccountAllowanceHook ,
290- 1 ,
291- Some ( lambda_hook) ,
292- ) ;
279+ let hook_details =
280+ HookCreationDetails :: new ( HookExtensionPoint :: AccountAllowanceHook , 1 , Some ( lambda_hook) ) ;
293281
294282 let sender_receipt = AccountCreateTransaction :: new ( )
295283 . key ( sender_key. public_key ( ) )
@@ -400,11 +388,8 @@ async fn can_transfer_nft_with_receiver_hook() -> anyhow::Result<()> {
400388 // Create receiver account with hook
401389 let spec = EvmHookSpec :: new ( Some ( contract_id) ) ;
402390 let lambda_hook = LambdaEvmHook :: new ( spec, vec ! [ ] ) ;
403- let hook_details = HookCreationDetails :: new (
404- HookExtensionPoint :: AccountAllowanceHook ,
405- 1 ,
406- Some ( lambda_hook) ,
407- ) ;
391+ let hook_details =
392+ HookCreationDetails :: new ( HookExtensionPoint :: AccountAllowanceHook , 1 , Some ( lambda_hook) ) ;
408393
409394 let receiver_receipt = AccountCreateTransaction :: new ( )
410395 . key ( receiver_key. public_key ( ) )
@@ -492,11 +477,8 @@ async fn can_transfer_nft_with_both_sender_and_receiver_hooks() -> anyhow::Resul
492477
493478 let spec = EvmHookSpec :: new ( Some ( contract_id) ) ;
494479 let lambda_hook = LambdaEvmHook :: new ( spec, vec ! [ ] ) ;
495- let hook_details = HookCreationDetails :: new (
496- HookExtensionPoint :: AccountAllowanceHook ,
497- 1 ,
498- Some ( lambda_hook) ,
499- ) ;
480+ let hook_details =
481+ HookCreationDetails :: new ( HookExtensionPoint :: AccountAllowanceHook , 1 , Some ( lambda_hook) ) ;
500482
501483 // Create sender account with hook
502484 let sender_receipt = AccountCreateTransaction :: new ( )
0 commit comments