class Eth::Client

def call_payload(fun, args)

Encodes function call payloads.
def call_payload(fun, args)
  types = fun.inputs.map { |i| i.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