Skip to content

Commit

Permalink
black fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Oct 16, 2024
1 parent c49bbf4 commit 855579f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/raw_imbalances.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,15 @@ def compute_token_imbalances(self, tx_hash: str) -> dict[str, int]:
except Exception as e:
logger.error(f"Failed to compute imbalances for transaction {tx_hash}: {e}")
return {}
def get_transaction_tokens(self, tx_hash: str) -> list[tuple[str,str]]:

def get_transaction_tokens(self, tx_hash: str) -> list[tuple[str, str]]:
token_imbalances = self.compute_token_imbalances(tx_hash)
transaction_tokens = []
for token_address in token_imbalances.keys():
transaction_tokens.append((tx_hash, token_address))
return transaction_tokens



def main() -> None:
"""main function for finding imbalance for a single tx hash."""
tx_hash = input("Enter transaction hash: ")
Expand Down

0 comments on commit 855579f

Please sign in to comment.