Skip to content

Commit

Permalink
fix: remove reference for HookerAddresses
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Dec 7, 2023
1 parent 20b63f6 commit 95b0c81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/katana/core/src/hooker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion crates/katana/core/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion crates/katana/rpc/src/katana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit 95b0c81

Please sign in to comment.