diff --git a/slither/utils/function.py b/slither/utils/function.py index 1c3741cc7..34e6f221b 100644 --- a/slither/utils/function.py +++ b/slither/utils/function.py @@ -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)