Skip to content

Commit

Permalink
fix "redefine builtin" lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush authored Nov 7, 2022
1 parent 882fc95 commit 44a45e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slither/utils/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ def get_function_id(sig: str) -> int:
Return:
(int)
"""
hash = keccak.new(digest_bits=256)
hash.update(sig.encode("utf-8"))
return int("0x" + hash.hexdigest()[:8], 16)
digest = keccak.new(digest_bits=256)
digest.update(sig.encode("utf-8"))
return int("0x" + digest.hexdigest()[:8], 16)

0 comments on commit 44a45e7

Please sign in to comment.