Skip to content

Commit

Permalink
0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Mar 2, 2024
1 parent 2b1c011 commit 888849a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@instadapp/utils",
"version": "0.7.2",
"version": "0.7.3",
"description": "",
"repository": "instadapp/utils",
"license": "MIT",
Expand Down
5 changes: 4 additions & 1 deletion src/abi/fetcher/AbiFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 888849a

Please sign in to comment.