class Eth::Client
def call_payload(fun, args)
def call_payload(fun, args) types = fun.inputs.map(&:parsed_type) encoded_str = Util.bin_to_hex(Eth::Abi.encode(types, args)) Util.prefix_hex(fun.signature + (encoded_str.empty? ? "0" * 64 : encoded_str)) end