You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
CompileError: project:/contracts/kyc.sol:4:1: DeclarationError: Identifier already declared.
contract KYC is admininterface {
^ (Relevant source part starts here and spans across multiple lines).
project:/contracts/kyc.sol:2:1: The previous declaration is here:
import './admininterface.sol';
^----------------------------^
Compilation failed. See above.
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/run.js:64:1
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/run.js:4:43)
Truffle v5.5.19 (core: 5.5.19)
Node v18.4.0
Issue
What the issue is, in broad strokes.
Steps to Reproduce
Please provide the shortest amount of steps to reproduce your issue.
Expected Behavior
What you expected to happen.
Actual Results
What actually happened. Please give examples and support it with screenshots, copied output or error messages.
Environment
Operating System:
Ethereum client:
Truffle version (truffle version):
node version (node --version):
npm version (npm --version):
The text was updated successfully, but these errors were encountered:
Hey @neetu-sharma, looks like you may have a Solidity error as that error is coming from the Solidity compiler. Can you check your code for syntax errors? Also, if you want to link to your project on GitHub I'll happily take a look to see if I can spot an error.
ompiling your contracts...
CompileError: project:/contracts/kyc.sol:4:1: DeclarationError: Identifier already declared.
contract KYC is admininterface {
^ (Relevant source part starts here and spans across multiple lines).
project:/contracts/kyc.sol:2:1: The previous declaration is here:
import './admininterface.sol';
^----------------------------^
Compilation failed. See above.
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/run.js:64:1
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/run.js:4:43)
Truffle v5.5.19 (core: 5.5.19)
Node v18.4.0
Issue
What the issue is, in broad strokes.
Steps to Reproduce
Please provide the shortest amount of steps to reproduce your issue.
Expected Behavior
What you expected to happen.
Actual Results
What actually happened. Please give examples and support it with screenshots, copied output or error messages.
Environment
truffle version
):node --version
):npm --version
):The text was updated successfully, but these errors were encountered: