Now uses Web3.py to get function selectors

This commit is contained in:
Alexandre Paillier
2023-11-09 15:30:21 +01:00
parent de82990e14
commit 62215e3e5f
2 changed files with 8 additions and 13 deletions

View File

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