Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit f4dfa02

Browse files
Antonio Calvín Garcíajuanbono
andauthored
Get block hash from rpc (#1124)
* add test rpc vs vm get_block_hash syscall * set failing branch state * Revert "set failing branch state" This reverts commit db722e4. * remove unnecessary test --------- Co-authored-by: Juan Bono <juanbono94@gmail.com>
1 parent 94f5e9f commit f4dfa02

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rpc_state_reader/tests/sir_tests.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ fn test_get_gas_price() {
391391
889897, // real block 889898
392392
RpcChain::TestNet
393393
)]
394+
#[test_case(
395+
"0x037e199c9560666d810862bc0cf62a67aae33af6b65823068143640cdeecd8ab",
396+
895707, // real block 895708
397+
RpcChain::TestNet
398+
)]
394399
fn starknet_in_rust_test_case_tx(hash: &str, block_number: u64, chain: RpcChain) {
395400
let (tx_info, trace, receipt) = execute_tx(hash, chain, BlockNumber(block_number));
396401

@@ -467,6 +472,12 @@ fn starknet_in_rust_test_case_tx(hash: &str, block_number: u64, chain: RpcChain)
467472
197000,
468473
3
469474
)]
475+
#[test_case(
476+
"0x037e199c9560666d810862bc0cf62a67aae33af6b65823068143640cdeecd8ab",
477+
RpcChain::TestNet,
478+
895707,
479+
1
480+
)]
470481
fn test_sorted_events(
471482
tx_hash: &str,
472483
chain: RpcChain,

0 commit comments

Comments
 (0)