Added SET_PLUGIN and PROVIDE_NFT_METADATA to Ragger client + a function signature to selector helper function

This commit is contained in:
Alexandre Paillier
2023-09-07 16:11:49 +02:00
parent 96ae8222ee
commit 171b31d3a3
4 changed files with 118 additions and 0 deletions

View File

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