Fix mypy and flake8

This commit is contained in:
Francois Beutin
2023-10-27 17:28:29 +02:00
parent 437f8a5679
commit a82b61ff8e
4 changed files with 15 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import sha3
def get_selector_from_function(fn: str) -> bytes:
return sha3.keccak_256(fn.encode()).digest()[0:4]