diff --git a/apps/block_scout_web/lib/block_scout_web/chain.ex b/apps/block_scout_web/lib/block_scout_web/chain.ex index b1a3c3ec19..c8279652bf 100644 --- a/apps/block_scout_web/lib/block_scout_web/chain.ex +++ b/apps/block_scout_web/lib/block_scout_web/chain.ex @@ -31,6 +31,14 @@ defmodule BlockScoutWeb.Chain do alias Explorer.PagingOptions + defimpl Poison.Encoder, for: Decimal do + def encode(value, _opts) do + decimal = Decimal + + [?\", decimal.to_string(value), ?\"] + end + end + @page_size 50 @default_paging_options %PagingOptions{page_size: @page_size + 1} @address_hash_len 40