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

Commit

Permalink
fix reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelabro committed Feb 9, 2024
1 parent 8bd1c90 commit 708c9f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- feat(rpc): added `get_state_update` real values from DA db
- feat: add transparent representation to `Felt252Wrapper`
- feat(rpc/trace_api): add `trace_block_transaction`
- chore(runtime_api): remove unused `filter_extrinsic`
- chore(db): changed the way hashes are encoded

## v0.7.0

Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl_runtime_apis! {
_ => unreachable!("The previous match made sure that at this point tx is one of those starknet calls"),
};

let tx_index = u32::try_from(tx_index).expect("unexpected number of transactions");
let tx_index = u32::try_from(tx_index).expect("More that u32::MAX extrinsics have been passed. That's too much. You should not be doing that.");
Some((tx_index, transaction))
}

Expand Down
2 changes: 1 addition & 1 deletion starknet-rpc-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ name = "starknet_get_state_update"
path = "get_state_update.rs"

[[test]]
name = "starknet_trance_block"
name = "starknet_trace_block_transactions"
path = "trace_block.rs"
2 changes: 1 addition & 1 deletion starknet-rpc-test/trace_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async fn fail_non_existing_block(madara: &ThreadSafeMadaraClient) -> Result<(),

#[rstest]
#[tokio::test]
async fn work(madara: &ThreadSafeMadaraClient) -> Result<(), anyhow::Error> {
async fn work_for_one_invoke_tx(madara: &ThreadSafeMadaraClient) -> Result<(), anyhow::Error> {
let rpc = madara.get_starknet_client().await;

// Create a block with one tx
Expand Down

0 comments on commit 708c9f2

Please sign in to comment.