File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
crates/rpc/rpc-server/src/starknet Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -410,9 +410,13 @@ where
410410 let state = self . state ( & block_id) ?;
411411
412412 // Check that contract exist by checking the class hash of the contract,
413- // unless its address 0x1 which is special system contract and does not
414- // have a class. See https://docs.starknet.io/architecture-and-concepts/network-architecture/starknet-state/#address_0x1.
415- if contract_address. 0 != Felt :: ONE
413+ // unless its address 0x1 or 0x2 which are special system contracts and does not
414+ // have a class.
415+ // See:
416+ // https://docs.starknet.io/learn/protocol/state#address-0x1.
417+ // https://docs.starknet.io/learn/protocol/data-availability#v0-13-4
418+
419+ if contract_address. 0 != Felt :: ONE && contract_address. 0 != Felt :: TWO
416420 && state. class_hash_of_contract ( contract_address) ?. is_none ( )
417421 {
418422 return Err ( StarknetApiError :: ContractNotFound ) ;
@@ -1168,8 +1172,9 @@ where
11681172 // We use `next_txn_idx` because the range is non-inclusive - we want to include the
11691173 // transaction pointed by `abs_end`.
11701174 let tx_range = start_from..next_txn_idx;
1175+ println ! ( "11" ) ;
11711176 let tx_hashes = provider. transaction_hashes_in_range ( tx_range) ?;
1172-
1177+ println ! ( "22" ) ;
11731178 let mut transactions: Vec < TransactionListItem > = Vec :: with_capacity ( tx_hashes. len ( ) ) ;
11741179
11751180 for hash in tx_hashes {
You can’t perform that action at this time.
0 commit comments