Skip to content

Commit

Permalink
Use inspect instead of Json.encode to handle map with map as keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne committed Jun 10, 2024
1 parent 31f8741 commit 9dd1c77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ defmodule ArchethicWeb.Explorer.TransactionDetailsLive do
end

def print_state(%UnspentOutput{encoded_payload: encoded_state}) do
encoded_state |> State.deserialize() |> elem(0) |> Jason.encode!(pretty: true)
encoded_state |> State.deserialize() |> elem(0) |> inspect(pretty: true)
end

defp similar?(
Expand Down

0 comments on commit 9dd1c77

Please sign in to comment.