fix "redefine builtin" lint error

pull/1454/head
alpharush 2 years ago committed by GitHub
parent 882fc95756
commit 44a45e75a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      slither/utils/function.py

@ -9,6 +9,6 @@ def get_function_id(sig: str) -> int:
Return: Return:
(int) (int)
""" """
hash = keccak.new(digest_bits=256) digest = keccak.new(digest_bits=256)
hash.update(sig.encode("utf-8")) digest.update(sig.encode("utf-8"))
return int("0x" + hash.hexdigest()[:8], 16) return int("0x" + digest.hexdigest()[:8], 16)

Loading…
Cancel
Save