@@ -254,13 +254,13 @@ fn getter_names() {
254
254
let _ = Getters :: valueCall { } ;
255
255
let _ = Getters :: valueReturn { value : String :: new ( ) } ;
256
256
257
- let _ = Getters :: arrayCall { _0 : U256 :: ZERO } ;
257
+ let _ = Getters :: arrayCall ( U256 :: ZERO ) ;
258
258
let _ = Getters :: arrayReturn { _0 : String :: new ( ) } ;
259
259
260
- let _ = Getters :: mapCall { _0 : B256 :: ZERO } ;
260
+ let _ = Getters :: mapCall ( B256 :: ZERO ) ;
261
261
let _ = Getters :: mapReturn { _0 : String :: new ( ) } ;
262
262
263
- let _ = Getters :: mapWithNamesCall { k : B256 :: ZERO } ;
263
+ let _ = Getters :: mapWithNamesCall ( B256 :: ZERO ) ;
264
264
let _ = Getters :: mapWithNamesReturn { v : String :: new ( ) } ;
265
265
266
266
let _ = Getters :: nestedMapWithNamesCall { k1 : B256 :: ZERO , k2 : U256 :: ZERO } ;
@@ -497,17 +497,17 @@ fn rust_keywords() {
497
497
bytes32 box;
498
498
}
499
499
500
- function mod ( address impl ) returns ( bool is, bool fn ) ;
500
+ function mod ( address impl , address some ) returns ( bool is, bool fn ) ;
501
501
}
502
502
}
503
503
use r#dyn:: * ;
504
504
505
505
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 } ;
507
507
let _ = dynCalls:: r#mod ( m) ;
508
508
let _ = modReturn { is : true , r#fn : false } ;
509
509
assert_eq ! ( r#const:: NAME , "const" ) ;
510
- assert_eq ! ( modCall:: SIGNATURE , "mod(address)" ) ;
510
+ assert_eq ! ( modCall:: SIGNATURE , "mod(address,address )" ) ;
511
511
}
512
512
513
513
#[ test]
@@ -543,7 +543,7 @@ fn most_rust_keywords() {
543
543
assert_eq!( $raw:: NAME , stringify!( $kw) ) ;
544
544
assert_ne!( $raw:: NAME , stringify!( $raw) ) ;
545
545
assert_eq!( <[ <$kw Call >] >:: SIGNATURE , concat!( stringify!( $kw) , "(bytes1)" ) ) ;
546
- let _ = [ <$kw Call >] { $raw : [ 0u8 ; 1 ] . into( ) } ;
546
+ let _ = [ <$kw Call >] ( [ 0u8 ; 1 ] . into( ) ) ;
547
547
assert_eq!( error:: $raw:: SIGNATURE , concat!( stringify!( $kw) , "(bytes2)" ) ) ;
548
548
let _ = error:: $raw( [ 0u8 ; 2 ] . into( ) ) ;
549
549
assert_eq!( event:: $raw:: SIGNATURE , concat!( stringify!( $kw) , "(bytes3)" ) ) ;
@@ -914,16 +914,16 @@ fn contract_derive_default() {
914
914
sol ! {
915
915
#[ derive( Debug , Default ) ]
916
916
contract MyContract {
917
- function f1( ) ;
918
- function f2( ) ;
917
+ function f1( address ) ;
918
+ function f2( address b ) ;
919
919
event e1( ) ;
920
920
event e2( ) ;
921
921
error c( ) ;
922
922
}
923
923
}
924
924
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 ( ) ;
927
927
let MyContract :: e1 { } = MyContract :: e1:: default ( ) ;
928
928
let MyContract :: e2 { } = MyContract :: e2:: default ( ) ;
929
929
#[ allow( clippy:: default_constructed_unit_structs) ]
@@ -995,11 +995,11 @@ fn regression_overloads() {
995
995
}
996
996
}
997
997
998
- let _ = Vm :: getNonce_0Call { account : Address :: ZERO } ;
998
+ let _ = Vm :: getNonce_0Call ( Address :: ZERO ) ;
999
999
let _ = Vm :: getNonce_0Return { nonce : 0 } ;
1000
1000
assert_eq ! ( Vm :: getNonce_0Call:: SIGNATURE , "getNonce(address)" ) ;
1001
1001
1002
- let _ = Vm :: getNonce_1Call { wallet : Vm :: Wallet { stuff : U256 :: ZERO } } ;
1002
+ let _ = Vm :: getNonce_1Call ( Vm :: Wallet { stuff : U256 :: ZERO } ) ;
1003
1003
let _ = Vm :: getNonce_1Return { nonce : 0 } ;
1004
1004
assert_eq ! ( Vm :: getNonce_1Call:: SIGNATURE , "getNonce((uint256))" ) ;
1005
1005
}
@@ -1015,7 +1015,7 @@ fn normal_paths() {
1015
1015
function func( I . S memory stuff) ;
1016
1016
}
1017
1017
1018
- let _ = funcCall { stuff : I :: S { x : U256 :: ZERO } } ;
1018
+ let _ = funcCall ( I :: S { x : U256 :: ZERO } ) ;
1019
1019
}
1020
1020
1021
1021
#[ test]
0 commit comments