File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
crates/starknet_os_flow_tests/src Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -2962,3 +2962,30 @@ async fn test_empty_multi_block() {
29622962 ) ;
29632963 test_output. expect_hint_coverage ( "test_empty_multi_block" ) ;
29642964}
2965+
2966+ #[ rstest]
2967+ #[ tokio:: test]
2968+ async fn test_deploy_no_ctor_contract ( ) {
2969+ let empty_contract_cairo0 = FeatureContract :: Empty ( CairoVersion :: Cairo0 ) ;
2970+ let ( mut test_manager, _) = TestManager :: < DictStateReader > :: new_with_default_initial_state ( [ (
2971+ empty_contract_cairo0,
2972+ calldata ! [ ] ,
2973+ ) ] )
2974+ . await ;
2975+ let class_hash = get_class_hash_of_feature_contract ( empty_contract_cairo0) ;
2976+
2977+ // Deploy the empty contract using the deploy syscall.
2978+ let ( deploy_tx, _address) = get_deploy_contract_tx_and_address_with_salt (
2979+ class_hash,
2980+ calldata ! [ ] ,
2981+ test_manager. next_nonce ( * FUNDED_ACCOUNT_ADDRESS ) ,
2982+ * NON_TRIVIAL_RESOURCE_BOUNDS ,
2983+ ContractAddressSalt ( Felt :: ZERO ) ,
2984+ ) ;
2985+ test_manager. add_invoke_tx ( deploy_tx, None ) ;
2986+
2987+ // Run the test.
2988+ let test_output =
2989+ test_manager. execute_test_with_default_block_contexts ( & TestParameters :: default ( ) ) . await ;
2990+ test_output. perform_default_validations ( ) ;
2991+ }
You can’t perform that action at this time.
0 commit comments