Using the online Solidity compiler I get this error:
browser/TokenSales.sol:18:10: Error: Member "value" not found or not visible after argument-dependent lookup in function (address) external returns (bool) - did you forget the "payable" modifier?
if (!TokenSalesInterface(tokenSales).proxyPurchase.value(msg.value).gas(106000)(payout)) throw;
^-------------------------------------------------^
For this code:
contract ProxyPayment {
address payout;
address tokenSales;
address owner;
function ProxyPayment(address _payout, address _tokenSales) {
payout = _payout;
tokenSales = _tokenSales;
owner = _payout;
}
function () {
if (!TokenSalesInterface(tokenSales).proxyPurchase.value(msg.value).gas(106000)(payout)) throw;
}
}
This is my repo.
How can I fix this issue?