From 026df3da3d61b6ccc6aec1452490e4b85aa94216 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Wed, 26 May 2021 17:18:04 +0300 Subject: [PATCH] Exclude encoding of smart_contract_additional_sources in address schema --- CHANGELOG.md | 1 + apps/explorer/lib/explorer/chain/address.ex | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c259fc8c2..3d4eb80843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - [#4067](https://github.com/blockscout/blockscout/pull/4067) - Display LP tokens USD value and custom metadata in tokens dropdown at address page ### Fixes +- [#4149](https://github.com/blockscout/blockscout/pull/4149) - Exclude smart_contract_additional_sources from JSON encoding in address schema - [#4038](https://github.com/blockscout/blockscout/pull/4038) - Add clause for abi_decode_address_output/1 when is_nil(address) - [#3989](https://github.com/blockscout/blockscout/pull/3989), [4061](https://github.com/blockscout/blockscout/pull/4061) - Fixed bug that sometimes lead to incorrect ordering of token transfers - [#3946](https://github.com/blockscout/blockscout/pull/3946) - Get NFT metadata from URIs with status_code 301 diff --git a/apps/explorer/lib/explorer/chain/address.ex b/apps/explorer/lib/explorer/chain/address.ex index 693c8474ce..35c8951349 100644 --- a/apps/explorer/lib/explorer/chain/address.ex +++ b/apps/explorer/lib/explorer/chain/address.ex @@ -69,7 +69,8 @@ defmodule Explorer.Chain.Address do :token, :contracts_creation_internal_transaction, :contracts_creation_transaction, - :names + :names, + :smart_contract_additional_sources ]} @derive {Jason.Encoder, @@ -80,7 +81,8 @@ defmodule Explorer.Chain.Address do :token, :contracts_creation_internal_transaction, :contracts_creation_transaction, - :names + :names, + :smart_contract_additional_sources ]} @primary_key {:hash, Hash.Address, autogenerate: false}