Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Sep 30, 2024
1 parent 8dbc84d commit 2c972da
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions crates/katana/rpc/rpc/tests/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -828,10 +828,11 @@ async fn block_traces() -> Result<()> {
let recipient = felt!("0x1");
let amount = Uint256 { low: felt!("0x1"), high: Felt::ZERO };

let mut hashes = Vec::new();

// -----------------------------------------------------------------------
// Block 1

let mut hashes = Vec::new();
for _ in 0..5 {
let res = contract.transfer(&recipient, &amount).send().await?;
dojo_utils::TransactionWaiter::new(res.transaction_hash, &provider).await?;
Expand All @@ -854,7 +855,9 @@ async fn block_traces() -> Result<()> {
// -----------------------------------------------------------------------
// Block 2

let mut hashes = Vec::new();
// remove the previous transaction hashes
hashes.clear();

for _ in 0..2 {
let res = contract.transfer(&recipient, &amount).send().await?;
dojo_utils::TransactionWaiter::new(res.transaction_hash, &provider).await?;
Expand All @@ -877,7 +880,9 @@ async fn block_traces() -> Result<()> {
// -----------------------------------------------------------------------
// Block 3 (Pending)

let mut hashes = Vec::new();
// remove the previous transaction hashes
hashes.clear();

for _ in 0..3 {
let res = contract.transfer(&recipient, &amount).send().await?;
dojo_utils::TransactionWaiter::new(res.transaction_hash, &provider).await?;
Expand Down

0 comments on commit 2c972da

Please sign in to comment.