@@ -30,7 +30,8 @@ static SEQUENCER_RPC: LazyLock<Url> = LazyLock::new(|| {
3030} ) ;
3131
3232/// Test account private key
33- const TEST_PRIVATE_KEY : B256 = b256 ! ( "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" ) ;
33+ const TEST_PRIVATE_KEY : B256 =
34+ b256 ! ( "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" ) ;
3435
3536/// Default delegation address for testing
3637const DEFAULT_DELEGATION_ADDRESS : & str = "0x90f79bf6eb2c4f870365e785982e1f101e93b906" ;
@@ -70,7 +71,8 @@ async fn test_wallet_api() -> Result<(), Box<dyn std::error::Error>> {
7071 let signer = PrivateKeySigner :: from_bytes ( & TEST_PRIVATE_KEY ) ?;
7172
7273 let delegation_address = Address :: from_str (
73- & std:: env:: var ( "DELEGATION_ADDRESS" ) . unwrap_or_else ( |_| DEFAULT_DELEGATION_ADDRESS . to_string ( ) ) ,
74+ & std:: env:: var ( "DELEGATION_ADDRESS" )
75+ . unwrap_or_else ( |_| DEFAULT_DELEGATION_ADDRESS . to_string ( ) ) ,
7476 ) ?;
7577
7678 // Create and sign authorization
@@ -84,16 +86,13 @@ async fn test_wallet_api() -> Result<(), Box<dyn std::error::Error>> {
8486 let auth = auth. into_signed ( signature) ;
8587
8688 // Prepare and send transaction
87- let tx = TransactionRequest :: default ( )
88- . with_authorization_list ( vec ! [ auth] )
89- . with_to ( signer. address ( ) ) ;
89+ let tx =
90+ TransactionRequest :: default ( ) . with_authorization_list ( vec ! [ auth] ) . with_to ( signer. address ( ) ) ;
9091
9192 let tx_hash: B256 = provider. client ( ) . request ( "wallet_sendTransaction" , vec ! [ tx] ) . await ?;
9293
9394 // Wait for and verify transaction receipt
94- let receipt = PendingTransactionBuilder :: new ( provider. clone ( ) , tx_hash)
95- . get_receipt ( )
96- . await ?;
95+ let receipt = PendingTransactionBuilder :: new ( provider. clone ( ) , tx_hash) . get_receipt ( ) . await ?;
9796
9897 assert ! ( receipt. status( ) , "Transaction failed" ) ;
9998 assert ! ( !provider. get_code_at( signer. address( ) ) . await ?. is_empty( ) , "No code at signer address" ) ;
0 commit comments