Skip to content

Commit

Permalink
chore: Rename get_event_signature -> event_signature
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-herasme committed Jul 19, 2024
1 parent 93e2c51 commit 3871c0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ghost-crab-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion ghost-crab/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion ghost-crab/src/process_logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3871c0e

Please sign in to comment.