ItsNickBarry/hardhat-abi-exporter

Duplicate ABI error thrown for unknown reason

Closed this issue · 1 comments

throw new HardhatPluginError(`duplicate output destination: ${ destination }`);

This line throws when I compile a combination of Uniswap v3 core and periphery contract libraries. I get:

Error in plugin hardhat-abi-exporter: duplicate output destination: .../uniswap/v3-core/abi/IUniswapV3Factory.json

when compiling, despite there only being one interface in the whole repo named IUniswapV3Factory.

Disabling this line throws no error.

Perhaps the error is unnecessary since a set is used anyway, so duplicate abi's will just be ignored anyway? or perhaps the abi's should be diffed instead (e.g. using lodash.isEqual) and if the diff does not match, then the error thrown.

Try version 2.10.1. If ABIs are equal, the error is ignored. Reopen if still broken.