graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

Property `_name` of `ethereum.SmartContract` class conflicts with contract's `_name()` function

Open cryptogladiators-dev opened this issue 3 years ago • 1 comments

Hello there, I have a contract defined in datasource that has a _name() function included in its ABI, but it conflicts with the _name property of ethereum.SmartContract class, so the command graph build fails with the error TS2300: Duplicate identifier '_name'..

Is there a way to fix this problem without having to remove the _name() function from the ABI or the generated file?

Many thanks!

cryptogladiators-dev avatar Jul 04 '22 10:07 cryptogladiators-dev

Hey @cryptogladiators-dev can you share a minimal reproduction. You can either use StackBlitz, CodeSandbox or a public GitHub repo.

saihaj avatar Mar 30 '23 18:03 saihaj