client.rb is_a? Address
ningjingzhiyuande opened this issue · comments
ningjingzhiyuan commented
def marshal(params)
params = params.dup
if params.is_a? Array
params.map! { |param| marshal(param) }
elsif params.is_a? Hash
params = camelize!(params)
params.transform_values! { |param| marshal(param) }
elsif params.is_a? Numeric
Util.prefix_hex "#{params.to_i.to_s(16)}"
elsif params.is_a? Address
params.to_s
elsif Util.hex? params
Util.prefix_hex params
else
params
end
end
end
is_a? Address have issue
Afri commented
duplicate of q9f/eth.rb#241