I am trying to read an address parameter in contract B from contract A and assert equality, but i get a type error:
TypeError: Operator == not compatible with types function () view external returns (address) and address
code:
contract A{
...
function confirm(B _address) public returns(bool){
B b = b(_address);
require(b._addr == msg.sender);
return true;
}
...
}
contract B{
address public _addr;
...
}
Thank you very much :)