From d33579968a6cb3acbdee6d3048716cb9e680c901 Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Thu, 16 Mar 2023 21:06:08 +0300 Subject: [PATCH 1/2] Fix custom ABI loading --- .../assets/js/lib/smart_contract/functions.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/block_scout_web/assets/js/lib/smart_contract/functions.js b/apps/block_scout_web/assets/js/lib/smart_contract/functions.js index e2bb60dd19..6c3cef0adc 100644 --- a/apps/block_scout_web/assets/js/lib/smart_contract/functions.js +++ b/apps/block_scout_web/assets/js/lib/smart_contract/functions.js @@ -101,19 +101,19 @@ const readWriteFunction = (element) => { const container = $('[data-smart-contract-functions]') if (container.length) { - getWalletAndLoadFunctions() + getWalletAndLoadFunctions(false, container) } const customABIContainer = $('[data-smart-contract-functions-custom]') if (customABIContainer.length) { - getWalletAndLoadFunctions() + getWalletAndLoadFunctions(true, customABIContainer) } -function getWalletAndLoadFunctions () { +function getWalletAndLoadFunctions (isCustomABI, container) { getCurrentAccountPromise(window.web3 && window.web3.currentProvider).then((currentAccount) => { - loadFunctions(container, false, currentAccount) + loadFunctions(container, isCustomABI, currentAccount) }, () => { - loadFunctions(container, false, null) + loadFunctions(container, isCustomABI, null) }) } From 657bf9f1f879ecbf54cdd7b0cee46dc04d2884bd Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Thu, 16 Mar 2023 21:13:54 +0300 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f23298d94..bb8c0abfff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Fixes +- [#7091](https://github.com/blockscout/blockscout/pull/7091) - Fix custom ABI - [#7062](https://github.com/blockscout/blockscout/pull/7062) - Save block count in the DB when calculated in Cache module - [#7008](https://github.com/blockscout/blockscout/pull/7008) - Fetch image/video content from IPFS link - [#7007](https://github.com/blockscout/blockscout/pull/7007), [#7031](https://github.com/blockscout/blockscout/pull/7031), [#7058](https://github.com/blockscout/blockscout/pull/7058), [#7061](https://github.com/blockscout/blockscout/pull/7061), [#7067](https://github.com/blockscout/blockscout/pull/7067) - Token instance fetcher fixes