1+ use std:: { collections:: BTreeSet , sync:: Arc } ;
2+
13use bytes:: Bytes ;
24use casper_execution_engine:: engine_state:: ExecutionEngineV1 ;
35use casper_executor_wasm:: {
@@ -95,6 +97,7 @@ fn argument_size_exceeds_memory_limit() {
9597 . with_block_height ( 1 )
9698 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
9799 . with_runtime_native_config ( runtime_native_config)
100+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
98101 . build ( )
99102 . expect ( "should build" ) ;
100103 let result = executor. execute_with_provider ( state_root_hash, & global_state, execute_request) ;
@@ -136,6 +139,7 @@ fn should_run_ee_966_with_zero_min_and_zero_max_memory() {
136139 . with_block_height ( 1 )
137140 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
138141 . with_runtime_native_config ( runtime_native_config)
142+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
139143 . build ( )
140144 . expect ( "should build" ) ;
141145
@@ -174,6 +178,7 @@ fn should_run_ee_966_cant_have_too_much_initial_memory() {
174178 . with_block_height ( 1 )
175179 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
176180 . with_runtime_native_config ( runtime_native_config)
181+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
177182 . build ( )
178183 . expect ( "should build" ) ;
179184
@@ -218,6 +223,7 @@ fn should_run_ee_966_cant_have_too_much_max_memory() {
218223 . with_block_height ( 1 )
219224 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
220225 . with_runtime_native_config ( runtime_native_config)
226+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
221227 . build ( )
222228 . expect ( "should build" ) ;
223229
@@ -262,6 +268,7 @@ fn should_run_ee_966_cant_have_way_too_much_max_memory() {
262268 . with_block_height ( 1 )
263269 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
264270 . with_runtime_native_config ( runtime_native_config)
271+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
265272 . build ( )
266273 . expect ( "should build" ) ;
267274
@@ -306,6 +313,7 @@ fn should_run_ee_966_cant_have_larger_initial_than_max_memory() {
306313 . with_block_height ( 1 )
307314 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
308315 . with_runtime_native_config ( runtime_native_config)
316+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
309317 . build ( )
310318 . expect ( "should build" ) ;
311319
@@ -355,6 +363,7 @@ fn should_run_ee_966_should_request_exactly_maximum_as_initial() {
355363 . with_block_height ( 1 )
356364 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
357365 . with_runtime_native_config ( runtime_native_config)
366+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
358367 . build ( )
359368 . expect ( "should build" ) ;
360369
@@ -395,6 +404,7 @@ fn should_run_ee_966_should_request_exactly_maximum() {
395404 . with_block_height ( 1 )
396405 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
397406 . with_runtime_native_config ( runtime_native_config)
407+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
398408 . build ( )
399409 . expect ( "should build" ) ;
400410
@@ -434,6 +444,7 @@ fn should_run_ee_966_regression_fail_when_growing_mem_past_max() {
434444 . with_block_height ( 1 )
435445 . with_parent_block_hash ( BlockHash :: new ( Digest :: hash ( b"block1" ) ) )
436446 . with_runtime_native_config ( runtime_native_config)
447+ . with_authorization_keys ( BTreeSet :: from_iter ( [ * DEFAULT_ACCOUNT_HASH ] ) )
437448 . build ( )
438449 . expect ( "should build" ) ;
439450
@@ -444,8 +455,6 @@ fn should_run_ee_966_regression_fail_when_growing_mem_past_max() {
444455 execute_request,
445456 ) ;
446457
447- println ! ( "{:?}" , result) ;
448-
449458 assert ! ( matches!(
450459 result,
451460 Ok ( ExecuteWithProviderResult {
0 commit comments