verbs.utils.encode_function_args#

encode_function_args(f_abi: Dict, types: List[str], args: List[Any]) bytes[source]#

Encode function arguments and prepend the function selector

Parameters:
  • f_abi (dict) – Parsed function ABI JSON.

  • types (list[str]) – List of solidity types.

  • args (list) – List of Python arguments.

Returns:

bytes – ABI encoded selector and arguments