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

Commit

Permalink
fix cargo-lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fishseabowl committed May 24, 2024
1 parent 89f5011 commit 0e2a5be
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions starknet-rpc-test/get_transaction_status.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::panic;

use assert_matches::assert_matches;
use rstest::rstest;
use starknet_core::types::{StarknetError, TransactionExecutionStatus, TransactionStatus};
Expand Down Expand Up @@ -38,10 +36,7 @@ async fn work_with_valid_transaction_hash(madara: &ThreadSafeMadaraClient) -> Re
assert_poll(
|| async {
let result = rpc.get_transaction_status(rpc_response.transaction_hash).await;
match result {
Ok(TransactionStatus::AcceptedOnL2(TransactionExecutionStatus::Succeeded)) => true,
_ => false,
}
matches!(result, Ok(TransactionStatus::AcceptedOnL2(TransactionExecutionStatus::Succeeded)))
},
1000,
20,
Expand Down

0 comments on commit 0e2a5be

Please sign in to comment.