From 95b0c81f16cc27d4a47d95331cd54ec16e9ff869 Mon Sep 17 00:00:00 2001 From: glihm Date: Thu, 7 Dec 2023 16:17:05 -0600 Subject: [PATCH] fix: remove reference for HookerAddresses --- crates/katana/core/src/hooker.rs | 2 +- crates/katana/core/src/sequencer.rs | 2 +- crates/katana/rpc/src/katana.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/katana/core/src/hooker.rs b/crates/katana/core/src/hooker.rs index 1c4f5d37df..b18b8149db 100644 --- a/crates/katana/core/src/hooker.rs +++ b/crates/katana/core/src/hooker.rs @@ -71,5 +71,5 @@ pub trait KatanaHooker { /// # Arguments /// /// * `addresses` - Important addresses related to solis. - fn set_addresses(&self, addresses: &HookerAddresses); + fn set_addresses(&self, addresses: HookerAddresses); } diff --git a/crates/katana/core/src/sequencer.rs b/crates/katana/core/src/sequencer.rs index 1c2d5b599c..f8ebcf3adb 100644 --- a/crates/katana/core/src/sequencer.rs +++ b/crates/katana/core/src/sequencer.rs @@ -96,7 +96,7 @@ impl KatanaSequencer { Self { pool, config, backend, block_producer, hooker } } - pub async fn set_addresses(&self, addresses: &HookerAddresses) { + pub async fn set_addresses(&self, addresses: HookerAddresses) { self.hooker.read().await.set_addresses(addresses); } diff --git a/crates/katana/rpc/src/katana.rs b/crates/katana/rpc/src/katana.rs index 681b3bfa93..9bdff90b62 100644 --- a/crates/katana/rpc/src/katana.rs +++ b/crates/katana/rpc/src/katana.rs @@ -25,7 +25,7 @@ impl KatanaApi { #[async_trait] impl KatanaApiServer for KatanaApi { async fn set_addresses(&self, addresses: HookerAddresses) -> Result<(), Error> { - self.sequencer.set_addresses(&addresses).await; + self.sequencer.set_addresses(addresses).await; Ok(()) }