Skip to content

DeclarationError: Identifier not found or not unique. #1028

Answered by alymurtazamemon
bankyf asked this question in Q&A
Discussion options

You must be logged in to vote

@bankyf You are creating struck with small letter of p that matches with people variable that's why it is giving duplicate error.

struct people {
    uint256 favoriteNumber;
    string name;
}

Change to this

struct People {
    uint256 favoriteNumber;
    string name;
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bankyf
Comment options

@alymurtazamemon
Comment options

@bankyf
Comment options

@alymurtazamemon
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants