1
투표 용 계약서를 작성했으며 인용 오류가 거의 없습니다. DeclarationError: Identifier not found or not unique. Voter[] public voters; ^---^
아래 코드는 전체 코드입니다. 내가 뭘 잘못하고 있는지 모르겠다. 자세한 내용 코드 방문 내가 먼저 지난 후 투표 스타일에 대한 투표를 만들기 위해 노력하고 here코드에서 솔리드 컴파일러가 DeclarationError를 throw합니다.
에 대한
contract Ballot {
int public majorityVotes;
Candidate[] public candidates;
mapping (address => uint) public voterId;
Voter[] public voters;
event CandidateAdded (uint candidateId, uint amount, string description);
event Voted (uint candidateId, int result, address voter);
event Tallyvotes (uint candidateId, int result, uint tally, bool active);
는, 그러나 컴파일이 실패합니다. 누군가가 뚜렷한 실수를 할 수 있기를 바랍니다.