~dcrck/solana

8bdd69e7374c51ceb108ee299e55dedd21a7d057 — dcrck 5 months ago c2a2729
bugfix: decode_result with transactions only for json-encoded results
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/solana/rpc/middleware.ex
M lib/solana/rpc/middleware.ex => lib/solana/rpc/middleware.ex +1 -1
@@ 60,7 60,7 @@ defmodule Solana.RPC.Middleware do
    {:ok, B58.decode58!(signature)}
  end

  defp decode_result({"getTransaction", %{"transaction" => tx} = result}) do
  defp decode_result({"getTransaction", %{"transaction" => tx} = result}) when is_map(tx) do
    tx =
      tx
      |> update_in(["message", "accountKeys"], &decode_b58_list/1)