diff --git a/ghost-crab-macros/src/lib.rs b/ghost-crab-macros/src/lib.rs index 4613832..5306e79 100644 --- a/ghost-crab-macros/src/lib.rs +++ b/ghost-crab-macros/src/lib.rs @@ -243,7 +243,7 @@ fn create_handler(metadata: TokenStream, input: TokenStream, is_template: bool) #execution_mode } - fn get_event_signature(&self) -> String { + fn event_signature(&self) -> String { #contract_name::#event_name::SIGNATURE.to_string() } } diff --git a/ghost-crab/src/handler.rs b/ghost-crab/src/handler.rs index 867d425..544b926 100644 --- a/ghost-crab/src/handler.rs +++ b/ghost-crab/src/handler.rs @@ -25,7 +25,7 @@ pub trait Handler { fn network(&self) -> String; fn rpc_url(&self) -> String; fn execution_mode(&self) -> ExecutionMode; - fn get_event_signature(&self) -> String; + fn event_signature(&self) -> String; } #[derive(Clone)] diff --git a/ghost-crab/src/process_logs.rs b/ghost-crab/src/process_logs.rs index 536323f..d652285 100644 --- a/ghost-crab/src/process_logs.rs +++ b/ghost-crab/src/process_logs.rs @@ -13,7 +13,7 @@ pub async fn process_logs( let network = handler.network(); let rpc_url = handler.rpc_url(); let execution_mode = handler.execution_mode(); - let event_signature = handler.get_event_signature(); + let event_signature = handler.event_signature(); let provider = RPC_MANAGER.lock().await.get_or_create(network, rpc_url).await; let mut current_block = start_block;