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

Commit

Permalink
Get block hash from rpc (#1124)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
toni-calvin and juanbono authored Nov 17, 2023
1 parent 94f5e9f commit f4dfa02
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rpc_state_reader/tests/sir_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ fn test_get_gas_price() {
889897, // real block 889898
RpcChain::TestNet
)]
#[test_case(
"0x037e199c9560666d810862bc0cf62a67aae33af6b65823068143640cdeecd8ab",
895707, // real block 895708
RpcChain::TestNet
)]
fn starknet_in_rust_test_case_tx(hash: &str, block_number: u64, chain: RpcChain) {
let (tx_info, trace, receipt) = execute_tx(hash, chain, BlockNumber(block_number));

Expand Down Expand Up @@ -467,6 +472,12 @@ fn starknet_in_rust_test_case_tx(hash: &str, block_number: u64, chain: RpcChain)
197000,
3
)]
#[test_case(
"0x037e199c9560666d810862bc0cf62a67aae33af6b65823068143640cdeecd8ab",
RpcChain::TestNet,
895707,
1
)]
fn test_sorted_events(
tx_hash: &str,
chain: RpcChain,
Expand Down

0 comments on commit f4dfa02

Please sign in to comment.