Is it possible to refer to state variables when a local variable has the same name?
The this
keyword in Solidity does something else, and I haven't heard of any equivalent keyword.
For example:
pragma solidity ^0.4.18;
contract escrow {
address seller;
address buyer;
address owner = msg.sender;
function setup(address seller, address buyer){
if(msg.sender == owner){
this.seller = seller;
this.buyer = buyer;
}
}
}
I found this GitHub issue but no answers to my specific question.