From 888849ad102c9f1270094564d8796ec542dcfbc1 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sat, 2 Mar 2024 19:10:53 +0200 Subject: [PATCH] 0.7.3 --- package.json | 2 +- src/abi/fetcher/AbiFetcher.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e906be3..7307fc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@instadapp/utils", - "version": "0.7.2", + "version": "0.7.3", "description": "", "repository": "instadapp/utils", "license": "MIT", diff --git a/src/abi/fetcher/AbiFetcher.ts b/src/abi/fetcher/AbiFetcher.ts index bb8638e..2ed23df 100644 --- a/src/abi/fetcher/AbiFetcher.ts +++ b/src/abi/fetcher/AbiFetcher.ts @@ -243,7 +243,10 @@ export class AbiFetcher { implementationAddress = await contract.comptrollerImplementation() implementationAbi = await this._get(implementationAddress, network, metadata) return proxyFetchMode === 'implementationOnly' ? implementationAbi : [...originalAbi, ...implementationAbi] - } else if (JSON.stringify(originalAbi || []).includes('implementation')) { + } else if ( + originalAbi.some(item => item.type === 'fallback') || + JSON.stringify(originalAbi || []).includes('implementation') + ) { try { const provider = new JsonRpcRetryProvider(rpcProviderUrl[network])