Documentation for eth_defi.event_reader.conversion.convert_jsonrpc_value_to_int function.
convert_jsonrpc_value_to_int(val)
Convert hex string or int to int.
Depending on the used JSON-RPC node,
they may return hex encoded values or JSON numbers
in JSON-RPC type. We need to be able to support both node and
do the compatibility hack here.