From 7264dd755ed77348484a9301bdcce7e3d20e684d Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Fri, 2 Feb 2024 14:52:03 +0300 Subject: [PATCH 1/2] Add smart contract and names info to AA response --- .../api/v2/proxy/account_abstraction_controller.ex | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/api/v2/proxy/account_abstraction_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/api/v2/proxy/account_abstraction_controller.ex index 89fb25900e..398d946b49 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/api/v2/proxy/account_abstraction_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/api/v2/proxy/account_abstraction_controller.ex @@ -153,7 +153,17 @@ defmodule BlockScoutWeb.API.V2.Proxy.AccountAbstractionController do defp address_info_from_hash_string(address_hash_string) do with {:ok, address_hash} <- Chain.string_to_address_hash(address_hash_string), - {:ok, address} <- Chain.hash_to_address(address_hash, [], false) do + {:ok, address} <- + Chain.hash_to_address( + address_hash, + [ + necessity_by_association: %{ + :names => :optional, + :smart_contract => :optional + } + ], + false + ) do Helper.address_with_info(address, address_hash_string) else _ -> address_hash_string From 29b7f18354f5309fd95deed72971eeaa38821629 Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Fri, 2 Feb 2024 14:57:00 +0300 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27ee1027dc..6ea300b119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,6 @@ ### Chore -- [#9303](https://github.com/blockscout/blockscout/pull/9303) - Add workflow for Shibarium -
Dependencies version bumps @@ -24,7 +22,7 @@ - [#9158](https://github.com/blockscout/blockscout/pull/9158) - Increase shared memory for PostgreSQL containers - [#9155](https://github.com/blockscout/blockscout/pull/9155) - Allow bypassing avg block time in proxy implementation re-fetch ttl calculation - [#9148](https://github.com/blockscout/blockscout/pull/9148) - Add `/api/v2/utils/decode-calldata` -- [#9145](https://github.com/blockscout/blockscout/pull/9145) - Proxy for Account abstraction microservice +- [#9145](https://github.com/blockscout/blockscout/pull/9145), [#9309](https://github.com/blockscout/blockscout/pull/9309) - Proxy for Account abstraction microservice - [#9132](https://github.com/blockscout/blockscout/pull/9132) - Fetch token image from CoinGecko - [#9131](https://github.com/blockscout/blockscout/pull/9131) - Merge addresses stage with address referencing - [#9120](https://github.com/blockscout/blockscout/pull/9120) - Add GET and POST `/api/v2/smart-contracts/:address_hash/audit-reports` @@ -57,6 +55,7 @@ ### Chore +- [#9303](https://github.com/blockscout/blockscout/pull/9303) - Add workflow for Shibarium - [#9233](https://github.com/blockscout/blockscout/pull/9233) - "cataloged" index on tokens table - [#9198](https://github.com/blockscout/blockscout/pull/9198) - Make Postgres@15 default option - [#9197](https://github.com/blockscout/blockscout/pull/9197) - Add `MARKET_HISTORY_FETCH_INTERVAL` env