Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig committed Feb 8, 2024
1 parent e5cbeed commit c5d1193
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions crates/rpc/src/v04/method/add_declare_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,11 @@ mod tests {

#[test]
fn unexpected_error_message() {
use starknet_gateway_types::error::{StarknetError, StarknetErrorCode, KnownStarknetErrorCode};
let starknet_error = SequencerError::StarknetError(StarknetError {
code: StarknetErrorCode::Known(KnownStarknetErrorCode::TransactionLimitExceeded),
use starknet_gateway_types::error::{
KnownStarknetErrorCode, StarknetError, StarknetErrorCode,
};
let starknet_error = SequencerError::StarknetError(StarknetError {
code: StarknetErrorCode::Known(KnownStarknetErrorCode::TransactionLimitExceeded),
message: "StarkNet Alpha throughput limit reached, please wait a few minutes and try again.".to_string()
});

Expand Down
8 changes: 5 additions & 3 deletions crates/rpc/src/v06/method/add_declare_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ mod tests {

#[test]
fn unexpected_error_message() {
use starknet_gateway_types::error::{StarknetError, StarknetErrorCode, KnownStarknetErrorCode};
let starknet_error = SequencerError::StarknetError(StarknetError {
code: StarknetErrorCode::Known(KnownStarknetErrorCode::TransactionLimitExceeded),
use starknet_gateway_types::error::{
KnownStarknetErrorCode, StarknetError, StarknetErrorCode,
};
let starknet_error = SequencerError::StarknetError(StarknetError {
code: StarknetErrorCode::Known(KnownStarknetErrorCode::TransactionLimitExceeded),
message: "StarkNet Alpha throughput limit reached, please wait a few minutes and try again.".to_string()
});

Expand Down
8 changes: 5 additions & 3 deletions crates/rpc/src/v06/method/add_invoke_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,11 @@ mod tests {

#[test]
fn unexpected_error_message() {
use starknet_gateway_types::error::{StarknetError, StarknetErrorCode, KnownStarknetErrorCode};
let starknet_error = SequencerError::StarknetError(StarknetError {
code: StarknetErrorCode::Known(KnownStarknetErrorCode::TransactionLimitExceeded),
use starknet_gateway_types::error::{
KnownStarknetErrorCode, StarknetError, StarknetErrorCode,
};
let starknet_error = SequencerError::StarknetError(StarknetError {
code: StarknetErrorCode::Known(KnownStarknetErrorCode::TransactionLimitExceeded),
message: "StarkNet Alpha throughput limit reached, please wait a few minutes and try again.".to_string()
});

Expand Down

0 comments on commit c5d1193

Please sign in to comment.