question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate definition for Compound ABI

See original GitHub issue

Hello,

I’m using the compound comptroller ropsten contract address and abi to call interact with some function with etherJs,

let compComptrollerContract = new ethers.Contract(config.compComptrollerDeployedContract, config.compComptrollerDeployedContractABI, provider);

I get this displayed on my terminal

duplicate definition - Failure(uint256,uint256,uint256)
duplicate definition - admin()
duplicate definition - comptrollerImplementation()
duplicate definition - pendingAdmin()
duplicate definition - pendingComptrollerImplementation()
Duplicate definition of ActionPaused (ActionPaused(string,bool), ActionPaused(address,string,bool))

I reached out to the compound team they said Ethers does not like method overloading in ABI definitions. Maybe it will get fixed at some point. The function I’m interacting works fine, just wanted to know if this will affect my code in anyway thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ricmoocommented, Nov 22, 2022

Yupp. It’s perfectly fine. Just makes selecting to correct method a bit more difficult. That’s why it’s just a warning.

In v6, since it uses Proxies, so this warning no longer exists. 😃

1reaction
ChinmayGopal931commented, Aug 29, 2022

I am still facing this issue because I have multiple functions with the same name but with different parameters. How to I supress this log?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate definition | Microsoft Learn
In this article. You can only define a conditional compiler constant to have one value. This error has the following cause and solution:....
Read more >
platform/external/abi-compliance-checker - Git at Google
my $ShortUsage = "ABI Compliance Checker (ABICC) $TOOL_VERSION. A tool for checking backward compatibility of a C/C++ library API.
Read more >
ChemmineR: Cheminformatics Toolkit for R - Bioconductor
Often it is of interest to identify very similar or identical compounds in a compound set. The cmp.duplicated function can be used to...
Read more >
C23 is Finished: Here is What is on the Menu | The Pasture
we are going to add the static modifier, which means that the compound literal we create has static storage duration:.
Read more >
Warning Options (Using the GNU Compiler Collection (GCC))
Since G++ now defaults to updating the ABI with each major release, ... Warn if a declaration has duplicate const , volatile ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found