I'm having a precrowdsale and a crowdsale, How can I send the ether from the first to the second once the precrowdsale is over? this is the script I have:
//send to crowdsale
if(receiver_address.send(amount_in_Wei)){
//sending is successful
} else {
// sending failed } }
but Ethereum Wallet compiler says: Could not compile source code.
Expected import directive or contract definition. if(receiver_address.send(amount_in_Wei)){ ^
What's wrong? Thank you!!!!