@@ -7,8 +7,12 @@ use starknet_in_rust::{
7
7
contract_address:: compute_deprecated_class_hash,
8
8
errors:: { contract_address_errors:: ContractAddressError , state_errors:: StateError } ,
9
9
transaction_hash:: {
10
- calculate_declare_transaction_hash, calculate_deploy_transaction_hash,
11
- calculate_transaction_hash_common, TransactionHashPrefix ,
10
+ deprecated:: {
11
+ deprecated_calculate_declare_transaction_hash,
12
+ deprecated_calculate_deploy_transaction_hash,
13
+ deprecated_calculate_transaction_hash_common,
14
+ } ,
15
+ TransactionHashPrefix ,
12
16
} ,
13
17
} ,
14
18
definitions:: {
@@ -118,7 +122,7 @@ fn declare_parser(
118
122
& CompiledClass :: Deprecated ( Arc :: new ( contract_class. clone ( ) ) ) ,
119
123
) ?;
120
124
121
- let tx_hash = calculate_declare_transaction_hash (
125
+ let tx_hash = deprecated_calculate_declare_transaction_hash (
122
126
& contract_class,
123
127
Felt252 :: ZERO ,
124
128
& Address ( 0 . into ( ) ) ,
@@ -146,7 +150,7 @@ fn deploy_parser(
146
150
) ?;
147
151
148
152
cached_state. deploy_contract ( Address ( address) , string_to_hash ( & args. class_hash ) ) ?;
149
- let tx_hash = calculate_deploy_transaction_hash (
153
+ let tx_hash = deprecated_calculate_deploy_transaction_hash (
150
154
0 . into ( ) ,
151
155
& Address ( address) ,
152
156
& constructor_calldata,
@@ -210,7 +214,7 @@ fn invoke_parser(
210
214
) ?;
211
215
cached_state. apply_state_update ( & StateDiff :: from_cached_state ( transactional_state. cache ( ) ) ?) ?;
212
216
213
- let tx_hash = calculate_transaction_hash_common (
217
+ let tx_hash = deprecated_calculate_transaction_hash_common (
214
218
TransactionHashPrefix :: Invoke ,
215
219
* TRANSACTION_VERSION ,
216
220
& contract_address,
0 commit comments