I have a contract:
contract KeyValueStorage {
mapping (address => mapping(bytes32 => uint256)) refreshTime;
....
}
and in another file:
import "./KeyValueStorage.sol";
contract GlobalGeneric {
KeyValueStorage globalS;
constructor(KeyValueStorage storage_) public {
globalS = storage_;
}
function claimInterests(address _memberAddr, bytes32 _identifier) public returns (bool success) {
require(now > globalS.refreshTime[_memberAddr][_identifier] + 90 days);
.....
}
....
}
But I got an error as refreshTime not found or not visible after argument-dependent lookup in contract KeyValueStorage