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 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) }) }