@@ -104,7 +104,7 @@ benchmarks! {
104104 ctoken,
105105 ContributionStrategy :: XCM ,
106106 CAP ,
107- END_BLOCK
107+ END_BLOCK . into ( )
108108 )
109109 verify {
110110 assert_last_event:: <T >( Event :: <T >:: VaultCreated ( crowdloan, ctoken) . into( ) )
@@ -116,12 +116,12 @@ benchmarks! {
116116 let caller: T :: AccountId = whitelisted_caller( ) ;
117117 initial_set_up:: <T >( caller, ctoken) ;
118118 // create vault before update
119- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK ) ) ;
119+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK . into ( ) ) ) ;
120120 } : _(
121121 SystemOrigin :: Root ,
122122 crowdloan,
123123 Some ( 1_000_000_000_001 ) ,
124- Some ( 1_000_000_001u32 ) ,
124+ Some ( 1_000_000_001u32 . into ( ) ) ,
125125 Some ( ContributionStrategy :: XCM )
126126 )
127127 verify {
@@ -134,7 +134,7 @@ benchmarks! {
134134 let crowdloan = ParaId :: from( 1335u32 ) ;
135135
136136 initial_set_up:: <T >( caller. clone( ) , ctoken) ;
137- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK ) ) ;
137+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK . into ( ) ) ) ;
138138 assert_ok!( Crowdloans :: <T >:: open( SystemOrigin :: Root . into( ) , crowdloan) ) ;
139139 } : _(
140140 SystemOrigin :: Signed ( caller. clone( ) ) ,
@@ -152,7 +152,7 @@ benchmarks! {
152152 let crowdloan = ParaId :: from( 1336u32 ) ;
153153
154154 initial_set_up:: <T >( caller, ctoken) ;
155- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK ) ) ;
155+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK . into ( ) ) ) ;
156156 } : _(
157157 SystemOrigin :: Root ,
158158 crowdloan
@@ -167,7 +167,7 @@ benchmarks! {
167167 let crowdloan = ParaId :: from( 1337u32 ) ;
168168
169169 initial_set_up:: <T >( caller, ctoken) ;
170- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK ) ) ;
170+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK . into ( ) ) ) ;
171171 assert_ok!( Crowdloans :: <T >:: open( SystemOrigin :: Root . into( ) , crowdloan) ) ;
172172 } : _(
173173 SystemOrigin :: Root ,
@@ -183,7 +183,7 @@ benchmarks! {
183183 let crowdloan = ParaId :: from( 1338u32 ) ;
184184
185185 initial_set_up:: <T >( caller, ctoken) ;
186- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK ) ) ;
186+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK . into ( ) ) ) ;
187187 } : _(
188188 SystemOrigin :: Root ,
189189 vec![ ParaId :: from( 1336u32 ) , ParaId :: from( 1337u32 ) ]
@@ -199,7 +199,7 @@ benchmarks! {
199199 let crowdloan = ParaId :: from( 1339u32 ) ;
200200
201201 initial_set_up:: <T >( caller, ctoken) ;
202- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK ) ) ;
202+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , CAP , END_BLOCK . into ( ) ) ) ;
203203 assert_ok!( Crowdloans :: <T >:: open( SystemOrigin :: Root . into( ) , crowdloan) ) ;
204204 assert_ok!( Crowdloans :: <T >:: close( SystemOrigin :: Root . into( ) , crowdloan) ) ;
205205 } : _(
@@ -216,7 +216,7 @@ benchmarks! {
216216 let crowdloan = ParaId :: from( 1340u32 ) ;
217217
218218 initial_set_up:: <T >( caller. clone( ) , ctoken) ;
219- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK ) ) ;
219+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK . into ( ) ) ) ;
220220 assert_ok!( Crowdloans :: <T >:: open( SystemOrigin :: Root . into( ) , crowdloan) ) ;
221221 assert_ok!( Crowdloans :: <T >:: contribute( SystemOrigin :: Signed ( caller) . into( ) , crowdloan, CONTRIBUTE_AMOUNT , Vec :: new( ) ) ) ;
222222 assert_ok!( Crowdloans :: <T >:: close( SystemOrigin :: Root . into( ) , crowdloan) ) ;
@@ -235,7 +235,7 @@ benchmarks! {
235235 let crowdloan = ParaId :: from( 1341u32 ) ;
236236
237237 initial_set_up:: <T >( caller. clone( ) , ctoken) ;
238- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK ) ) ;
238+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK . into ( ) ) ) ;
239239 assert_ok!( Crowdloans :: <T >:: open( SystemOrigin :: Root . into( ) , crowdloan) ) ;
240240 assert_ok!( Crowdloans :: <T >:: contribute( SystemOrigin :: Signed ( caller. clone( ) ) . into( ) , crowdloan, CONTRIBUTE_AMOUNT , Vec :: new( ) ) ) ;
241241 assert_ok!( Crowdloans :: <T >:: notification_received(
@@ -265,7 +265,7 @@ benchmarks! {
265265 let crowdloan = ParaId :: from( 1342u32 ) ;
266266
267267 initial_set_up:: <T >( caller. clone( ) , ctoken) ;
268- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK ) ) ;
268+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK . into ( ) ) ) ;
269269 assert_ok!( Crowdloans :: <T >:: open( SystemOrigin :: Root . into( ) , crowdloan) ) ;
270270 assert_ok!( Crowdloans :: <T >:: contribute( SystemOrigin :: Signed ( caller) . into( ) , crowdloan, CONTRIBUTE_AMOUNT , Vec :: new( ) ) ) ;
271271 assert_ok!( Crowdloans :: <T >:: close( SystemOrigin :: Root . into( ) , crowdloan) ) ;
@@ -283,7 +283,7 @@ benchmarks! {
283283 let crowdloan = ParaId :: from( 1343u32 ) ;
284284
285285 initial_set_up:: <T >( caller. clone( ) , ctoken) ;
286- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK ) ) ;
286+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK . into ( ) ) ) ;
287287 for _ in 0 ..10 {
288288 assert_ok!( Crowdloans :: <T >:: contribute( SystemOrigin :: Signed ( caller. clone( ) ) . into( ) , crowdloan, CONTRIBUTE_AMOUNT , Vec :: new( ) ) ) ;
289289 }
@@ -301,7 +301,7 @@ benchmarks! {
301301 let crowdloan = ParaId :: from( 1344u32 ) ;
302302
303303 initial_set_up:: <T >( caller. clone( ) , ctoken) ;
304- assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK ) ) ;
304+ assert_ok!( Crowdloans :: <T >:: create_vault( SystemOrigin :: Root . into( ) , crowdloan, ctoken, ContributionStrategy :: XCM , LARGE_CAP , END_BLOCK . into ( ) ) ) ;
305305 assert_ok!( Crowdloans :: <T >:: open( SystemOrigin :: Root . into( ) , crowdloan) ) ;
306306 assert_ok!( Crowdloans :: <T >:: contribute( SystemOrigin :: Signed ( caller) . into( ) , crowdloan, CONTRIBUTE_AMOUNT , Vec :: new( ) ) ) ;
307307 } : _(
0 commit comments