@@ -254,13 +254,13 @@ fn getter_names() {
254254 let _ = Getters :: valueCall { } ;
255255 let _ = Getters :: valueReturn { value : String :: new ( ) } ;
256256
257- let _ = Getters :: arrayCall { _0 : U256 :: ZERO } ;
257+ let _ = Getters :: arrayCall ( U256 :: ZERO ) ;
258258 let _ = Getters :: arrayReturn { _0 : String :: new ( ) } ;
259259
260- let _ = Getters :: mapCall { _0 : B256 :: ZERO } ;
260+ let _ = Getters :: mapCall ( B256 :: ZERO ) ;
261261 let _ = Getters :: mapReturn { _0 : String :: new ( ) } ;
262262
263- let _ = Getters :: mapWithNamesCall { k : B256 :: ZERO } ;
263+ let _ = Getters :: mapWithNamesCall ( B256 :: ZERO ) ;
264264 let _ = Getters :: mapWithNamesReturn { v : String :: new ( ) } ;
265265
266266 let _ = Getters :: nestedMapWithNamesCall { k1 : B256 :: ZERO , k2 : U256 :: ZERO } ;
@@ -497,17 +497,17 @@ fn rust_keywords() {
497497 bytes32 box;
498498 }
499499
500- function mod ( address impl ) returns ( bool is, bool fn ) ;
500+ function mod ( address impl , address some ) returns ( bool is, bool fn ) ;
501501 }
502502 }
503503 use r#dyn:: * ;
504504
505505 let _ = r#const { r#unsafe : true , r#box : Default :: default ( ) } ;
506- let m = modCall { r#impl : Address :: ZERO } ;
506+ let m = modCall { r#impl : Address :: ZERO , some : Address :: ZERO } ;
507507 let _ = dynCalls:: r#mod ( m) ;
508508 let _ = modReturn { is : true , r#fn : false } ;
509509 assert_eq ! ( r#const:: NAME , "const" ) ;
510- assert_eq ! ( modCall:: SIGNATURE , "mod(address)" ) ;
510+ assert_eq ! ( modCall:: SIGNATURE , "mod(address,address )" ) ;
511511}
512512
513513#[ test]
@@ -543,7 +543,7 @@ fn most_rust_keywords() {
543543 assert_eq!( $raw:: NAME , stringify!( $kw) ) ;
544544 assert_ne!( $raw:: NAME , stringify!( $raw) ) ;
545545 assert_eq!( <[ <$kw Call >] >:: SIGNATURE , concat!( stringify!( $kw) , "(bytes1)" ) ) ;
546- let _ = [ <$kw Call >] { $raw : [ 0u8 ; 1 ] . into( ) } ;
546+ let _ = [ <$kw Call >] ( [ 0u8 ; 1 ] . into( ) ) ;
547547 assert_eq!( error:: $raw:: SIGNATURE , concat!( stringify!( $kw) , "(bytes2)" ) ) ;
548548 let _ = error:: $raw( [ 0u8 ; 2 ] . into( ) ) ;
549549 assert_eq!( event:: $raw:: SIGNATURE , concat!( stringify!( $kw) , "(bytes3)" ) ) ;
@@ -914,16 +914,16 @@ fn contract_derive_default() {
914914 sol ! {
915915 #[ derive( Debug , Default ) ]
916916 contract MyContract {
917- function f1( ) ;
918- function f2( ) ;
917+ function f1( address ) ;
918+ function f2( address b ) ;
919919 event e1( ) ;
920920 event e2( ) ;
921921 error c( ) ;
922922 }
923923 }
924924
925- let MyContract :: f1Call { } = MyContract :: f1Call:: default ( ) ;
926- let MyContract :: f2Call { } = MyContract :: f2Call:: default ( ) ;
925+ let MyContract :: f1Call( _ ) = MyContract :: f1Call:: default ( ) ;
926+ let MyContract :: f2Call( _ ) = MyContract :: f2Call:: default ( ) ;
927927 let MyContract :: e1 { } = MyContract :: e1:: default ( ) ;
928928 let MyContract :: e2 { } = MyContract :: e2:: default ( ) ;
929929 #[ allow( clippy:: default_constructed_unit_structs) ]
@@ -995,11 +995,11 @@ fn regression_overloads() {
995995 }
996996 }
997997
998- let _ = Vm :: getNonce_0Call { account : Address :: ZERO } ;
998+ let _ = Vm :: getNonce_0Call ( Address :: ZERO ) ;
999999 let _ = Vm :: getNonce_0Return { nonce : 0 } ;
10001000 assert_eq ! ( Vm :: getNonce_0Call:: SIGNATURE , "getNonce(address)" ) ;
10011001
1002- let _ = Vm :: getNonce_1Call { wallet : Vm :: Wallet { stuff : U256 :: ZERO } } ;
1002+ let _ = Vm :: getNonce_1Call ( Vm :: Wallet { stuff : U256 :: ZERO } ) ;
10031003 let _ = Vm :: getNonce_1Return { nonce : 0 } ;
10041004 assert_eq ! ( Vm :: getNonce_1Call:: SIGNATURE , "getNonce((uint256))" ) ;
10051005}
@@ -1015,7 +1015,7 @@ fn normal_paths() {
10151015 function func( I . S memory stuff) ;
10161016 }
10171017
1018- let _ = funcCall { stuff : I :: S { x : U256 :: ZERO } } ;
1018+ let _ = funcCall ( I :: S { x : U256 :: ZERO } ) ;
10191019}
10201020
10211021#[ test]
0 commit comments