Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed Apr 17, 2024
1 parent 57de2ed commit 5ecf5cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chaindexing/src/events/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Event {
self.transaction_index as u32
}
pub fn get_log_index(&self) -> u32 {
self.transaction_index as u32
self.log_index as u32
}

pub fn get_params(&self) -> EventParam {
Expand Down Expand Up @@ -266,10 +266,10 @@ impl EventParam {
token_to_int(self.get_token(key))
}
pub fn get_address_string(&self, key: &str) -> String {
utils::address_to_string(&self.get_address(key)).to_lowercase()
token_to_address_string(self.get_token(key))
}
pub fn get_address(&self, key: &str) -> Address {
self.get_token(key).into_address().unwrap()
token_to_address(self.get_token(key))
}

fn get_token(&self, key: &str) -> Token {
Expand Down

0 comments on commit 5ecf5cd

Please sign in to comment.