I'm a little bit confused by the following code. Specifically, what the empty token contract does, and why it helps to create it. Is there no way to create an instance of a contract just by giving an address and then using the functions of that contract? Why do you need to create this empty code?
contract token { function give(address giveToAddress, uint amount) {} }
contract CrowdFund{
token public rewardToken;
function CrowdFund (
string _name,
address _sendTo,
uint _durationInHours,
uint _priceInEther,
uint _minimum,
token _rewardToken
){
startTime = now;
endTime = now + _durationInHours*60 minutes;
name = _name;
destination = _sendTo;
tokenPriceInEther = _priceInEther*1 ether;
minimum = minimumSend;
rewardToken = _rewardToken;
}
}