@@ -31,7 +31,8 @@ mod instantiate_contract {
3131 let create_params = build_create :: < Contract1Ref > ( )
3232 . code_hash ( code_hash)
3333 . endowment ( 0 . into ( ) )
34- . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink ,
34+ . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
35+ Abi :: Ink ,
3536 "new"
3637 ) ) ) )
3738 . salt_bytes ( Some ( salt_bytes) )
@@ -57,7 +58,8 @@ mod instantiate_contract {
5758 let create_params = build_create :: < Contract2Ref > ( )
5859 . code_hash ( code_hash)
5960 . endowment ( 0 . into ( ) )
60- . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink ,
61+ . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
62+ Abi :: Ink ,
6163 "new"
6264 ) ) ) )
6365 . salt_bytes ( Some ( salt_bytes) )
@@ -81,7 +83,8 @@ mod instantiate_contract {
8183 let call = build_call ( )
8284 . call ( contract1_address)
8385 . transferred_value ( 0 . into ( ) )
84- . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink ,
86+ . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
87+ Abi :: Ink ,
8588 "get_x"
8689 ) ) ) )
8790 . returns :: < u32 > ( )
@@ -100,7 +103,8 @@ mod instantiate_contract {
100103 let call = build_call ( )
101104 . call ( contract2_address)
102105 . transferred_value ( 0 . into ( ) )
103- . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink ,
106+ . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
107+ Abi :: Ink ,
104108 "get_x"
105109 ) ) ) )
106110 . returns :: < u32 > ( )
@@ -120,8 +124,11 @@ mod instantiate_contract {
120124 . call ( contract1_address)
121125 . transferred_value ( 0 . into ( ) )
122126 . exec_input (
123- ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink , "set_x" ) ) )
124- . push_arg ( new_x) ,
127+ ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
128+ Abi :: Ink ,
129+ "set_x"
130+ ) ) )
131+ . push_arg ( new_x) ,
125132 )
126133 . returns :: < ( ) > ( )
127134 . params ( ) ;
@@ -140,8 +147,11 @@ mod instantiate_contract {
140147 . call ( contract2_address)
141148 . transferred_value ( 0 . into ( ) )
142149 . exec_input (
143- ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink , "set_x" ) ) )
144- . push_arg ( new_x) ,
150+ ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
151+ Abi :: Ink ,
152+ "set_x"
153+ ) ) )
154+ . push_arg ( new_x) ,
145155 )
146156 . returns :: < ( ) > ( )
147157 . params ( ) ;
@@ -258,7 +268,8 @@ mod instantiate_contract {
258268 let create_params = build_create :: < VirtualContractVer1Ref > ( )
259269 . code_hash ( code_hash2)
260270 . endowment ( 0 . into ( ) )
261- . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink ,
271+ . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
272+ Abi :: Ink ,
262273 "new"
263274 ) ) ) )
264275 . returns :: < VirtualContractVer1Ref > ( )
@@ -280,7 +291,8 @@ mod instantiate_contract {
280291 let create_params = build_create :: < VirtualContractVer2Ref > ( )
281292 . code_hash ( code_hash3)
282293 . endowment ( 0 . into ( ) )
283- . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!( Abi :: Ink ,
294+ . exec_input ( ExecutionInput :: new ( Selector :: new ( ink:: selector_bytes!(
295+ Abi :: Ink ,
284296 "new"
285297 ) ) ) )
286298 . returns :: < VirtualContractVer2Ref > ( )
0 commit comments