remove a dirty hack for decoding abi of string

pull/3123/head
Ayrat Badykov 5 years ago
parent 054bfa177a
commit 5d374476fd
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 10
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/encoder.ex

@ -58,16 +58,6 @@ defmodule EthereumJSONRPC.Encoder do
end) end)
end end
def decode_result(result, %{returns: r} = fs) when r in [:string, [:string]] do
case decode_result(result, %{fs | returns: {:tuple, [:string]}}) do
{id, {:ok, [{string}]}} ->
{id, {:ok, [string]}}
error ->
error
end
end
def decode_result(%{id: id, result: result}, function_selector) do def decode_result(%{id: id, result: result}, function_selector) do
types_list = List.wrap(function_selector.returns) types_list = List.wrap(function_selector.returns)

Loading…
Cancel
Save