function assessVoter () public view returns(uint) {
uint weight = (msg.sender).balance;
return (weight);
}
edit: I figured out the issue re: identifier. I had started a struct above and forgot to delete the incomplete struct. But assistance regarding the identification of balance would still be super appreciated!
I created a function to return the balance of a user's wallet address... Not sure if this is even how its properly done, just made intuitive sense to me ^ . ^
I got this error. Part of the issue is that I am very new and don't know what an identifier is. Additionally, as a side question, how would one query for the balance of a specific ERC-20 within a wallet?
ParserError: Expected identifier but got 'function' function assessVoter () public view returns(uint)