diff --git a/crates/katana/core/src/sequencer.rs b/crates/katana/core/src/sequencer.rs index 11b181959e..970195ace4 100644 --- a/crates/katana/core/src/sequencer.rs +++ b/crates/katana/core/src/sequencer.rs @@ -97,7 +97,7 @@ impl KatanaSequencer { } pub fn provider(&self) -> &BlockchainProvider> { - &self.backend.blockchain.provider() + self.backend.blockchain.provider() } // pub async fn set_storage_at( diff --git a/crates/katana/rpc/rpc/src/starknet/write.rs b/crates/katana/rpc/rpc/src/starknet/write.rs index 10f62ffb9b..286f9cf8d2 100644 --- a/crates/katana/rpc/rpc/src/starknet/write.rs +++ b/crates/katana/rpc/rpc/src/starknet/write.rs @@ -17,7 +17,7 @@ impl StarknetApi { ) -> Result { self.on_io_blocking_task(move |this| { if tx.is_query() { - return Err(StarknetApiError::UnsupportedTransactionVersion.into()); + return Err(StarknetApiError::UnsupportedTransactionVersion); } let tx = tx.into_tx_with_chain_id(this.inner.sequencer.backend().chain_id); @@ -36,7 +36,7 @@ impl StarknetApi { ) -> Result { self.on_io_blocking_task(move |this| { if tx.is_query() { - return Err(StarknetApiError::UnsupportedTransactionVersion.into()); + return Err(StarknetApiError::UnsupportedTransactionVersion); } let tx = tx @@ -59,7 +59,7 @@ impl StarknetApi { ) -> Result { self.on_io_blocking_task(move |this| { if tx.is_query() { - return Err(StarknetApiError::UnsupportedTransactionVersion.into()); + return Err(StarknetApiError::UnsupportedTransactionVersion); } let tx = tx.into_tx_with_chain_id(this.inner.sequencer.backend().chain_id);