Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Jul 25, 2024
1 parent 71202b9 commit 8797a8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/katana/core/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<EF: ExecutorFactory> KatanaSequencer<EF> {
}

pub fn provider(&self) -> &BlockchainProvider<Box<dyn Database>> {
&self.backend.blockchain.provider()
self.backend.blockchain.provider()
}

// pub async fn set_storage_at(
Expand Down
6 changes: 3 additions & 3 deletions crates/katana/rpc/rpc/src/starknet/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<EF: ExecutorFactory> StarknetApi<EF> {
) -> Result<InvokeTxResult, StarknetApiError> {
self.on_io_blocking_task(move |this| {
if tx.is_query() {
return Err(StarknetApiError::UnsupportedTransactionVersion.into());
return Err(StarknetApiError::UnsupportedTransactionVersion);

Check warning on line 20 in crates/katana/rpc/rpc/src/starknet/write.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/rpc/rpc/src/starknet/write.rs#L20

Added line #L20 was not covered by tests
}

let tx = tx.into_tx_with_chain_id(this.inner.sequencer.backend().chain_id);
Expand All @@ -36,7 +36,7 @@ impl<EF: ExecutorFactory> StarknetApi<EF> {
) -> Result<DeclareTxResult, StarknetApiError> {
self.on_io_blocking_task(move |this| {
if tx.is_query() {
return Err(StarknetApiError::UnsupportedTransactionVersion.into());
return Err(StarknetApiError::UnsupportedTransactionVersion);

Check warning on line 39 in crates/katana/rpc/rpc/src/starknet/write.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/rpc/rpc/src/starknet/write.rs#L39

Added line #L39 was not covered by tests
}

let tx = tx
Expand All @@ -59,7 +59,7 @@ impl<EF: ExecutorFactory> StarknetApi<EF> {
) -> Result<DeployAccountTxResult, StarknetApiError> {

Check warning on line 59 in crates/katana/rpc/rpc/src/starknet/write.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/rpc/rpc/src/starknet/write.rs#L58-L59

Added lines #L58 - L59 were not covered by tests
self.on_io_blocking_task(move |this| {
if tx.is_query() {
return Err(StarknetApiError::UnsupportedTransactionVersion.into());
return Err(StarknetApiError::UnsupportedTransactionVersion);

Check warning on line 62 in crates/katana/rpc/rpc/src/starknet/write.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/rpc/rpc/src/starknet/write.rs#L61-L62

Added lines #L61 - L62 were not covered by tests
}

let tx = tx.into_tx_with_chain_id(this.inner.sequencer.backend().chain_id);

Check warning on line 65 in crates/katana/rpc/rpc/src/starknet/write.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/rpc/rpc/src/starknet/write.rs#L65

Added line #L65 was not covered by tests
Expand Down

0 comments on commit 8797a8c

Please sign in to comment.