The Solidity Contract-Oriented Programming Language - By chatting here you agree to the https://github.com/ethereum/solidity/blob/develop/CODE_OF_CONDUCT.md
Hi guys, I have a serious problem when using Remix IDE. I use Javascript VM to test my code . when I use an account to test it the address of the account is not the same as msg.sender
My code is about organising an election and for this function:
function presentyourself(address a){
require(addvoters[msg.sender].adr == a);
candidates[addvoters[msg.sender].index].cur = true;}
addvoters is a mapping : mapping (address => Voter) public addvoters;
and Voter is the structure representing a voter
cur is a boolean indicating if he presented himself as candidate or not
I need the msg.sender to be the same as the address of the account ( for more security) but it is not the case... any thoughts ?
_