Added SET_PLUGIN and PROVIDE_NFT_METADATA to Ragger client + a function signature to selector helper function
This commit is contained in:
4
client/src/ledger_app_clients/ethereum/utils.py
Normal file
4
client/src/ledger_app_clients/ethereum/utils.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import sha3
|
||||
|
||||
def get_selector_from_function(fn: str) -> bytes:
|
||||
return sha3.keccak_256(fn.encode()).digest()[0:4]
|
||||
Reference in New Issue
Block a user