@@ -69,33 +69,33 @@ pub fn get_flattened_sierra_contract_and_casm_hash(sierra_path: &str) -> SierraW
6969 ( sierra_class. flatten ( ) . unwrap ( ) , casm_hash)
7070}
7171
72- pub fn get_messaging_contract_in_sierra_and_compiled_class_hash ( ) -> SierraWithCasmHash {
72+ pub fn get_messaging_contract_artifacts ( ) -> SierraWithCasmHash {
7373 let sierra_path = "../../contracts/l1-l2-artifacts/cairo_l1_l2.contract_class.sierra" ;
7474 get_flattened_sierra_contract_and_casm_hash ( sierra_path)
7575}
7676
77- pub fn get_messaging_lib_in_sierra_and_compiled_class_hash ( ) -> SierraWithCasmHash {
77+ pub fn get_messaging_lib_artifacts ( ) -> SierraWithCasmHash {
7878 let sierra_path = "../../contracts/l1-l2-artifacts/cairo_l1_l2_lib.contract_class.sierra" ;
7979 get_flattened_sierra_contract_and_casm_hash ( sierra_path)
8080}
8181
82- pub fn get_events_contract_in_sierra_and_compiled_class_hash ( ) -> SierraWithCasmHash {
82+ pub fn get_events_contract_artifacts ( ) -> SierraWithCasmHash {
8383 let events_sierra_path =
8484 "../../contracts/test_artifacts/cairo1/events/events_2.0.1_compiler.sierra" ;
8585 get_flattened_sierra_contract_and_casm_hash ( events_sierra_path)
8686}
8787
88- pub fn get_block_reader_contract_in_sierra_and_compiled_class_hash ( ) -> SierraWithCasmHash {
88+ pub fn get_block_reader_contract_artifacts ( ) -> SierraWithCasmHash {
8989 let timestamp_sierra_path =
9090 "../../contracts/test_artifacts/cairo1/block_reader/block_reader.sierra" ;
9191 get_flattened_sierra_contract_and_casm_hash ( timestamp_sierra_path)
9292}
9393
94- pub fn get_simple_contract_in_sierra_and_compiled_class_hash ( ) -> SierraWithCasmHash {
94+ pub fn get_simple_contract_artifacts ( ) -> SierraWithCasmHash {
9595 get_flattened_sierra_contract_and_casm_hash ( CAIRO_1_CONTRACT_PATH )
9696}
9797
98- pub fn get_timestamp_asserter ( ) -> SierraWithCasmHash {
98+ pub fn get_timestamp_asserter_contract_artifacts ( ) -> SierraWithCasmHash {
9999 get_flattened_sierra_contract_and_casm_hash (
100100 "../../contracts/test_artifacts/cairo1/timestamp_asserter/target/dev/\
101101 cairo_TimestampAsserter.contract_class.json",
@@ -302,7 +302,7 @@ pub async fn declare_v3_deploy_v3(
302302pub async fn declare_deploy_simple_contract (
303303 account : & SingleOwnerAccount < & JsonRpcClient < HttpTransport > , LocalWallet > ,
304304) -> Result < ( Felt , Felt ) , anyhow:: Error > {
305- let ( contract_class, casm_hash) = get_simple_contract_in_sierra_and_compiled_class_hash ( ) ;
305+ let ( contract_class, casm_hash) = get_simple_contract_artifacts ( ) ;
306306
307307 let declaration_result = account
308308 . declare_v3 ( Arc :: new ( contract_class) , casm_hash)
@@ -339,7 +339,7 @@ pub async fn declare_deploy_simple_contract(
339339pub async fn declare_deploy_events_contract (
340340 account : & SingleOwnerAccount < & JsonRpcClient < HttpTransport > , LocalWallet > ,
341341) -> Result < Felt , anyhow:: Error > {
342- let ( contract_class, casm_hash) = get_events_contract_in_sierra_and_compiled_class_hash ( ) ;
342+ let ( contract_class, casm_hash) = get_events_contract_artifacts ( ) ;
343343
344344 let declaration_result = account
345345 . declare_v3 ( Arc :: new ( contract_class) , casm_hash)
0 commit comments