Commit 46fe7ee7 by Francisco Giordano

guard against beneficiary == 0x0

parent 54d74b1c
......@@ -67,6 +67,7 @@ contract Crowdsale {
// low level token purchase function
function buyTokens(address beneficiary) payable {
require(beneficiary != 0x0);
require(purchaseValid());
uint256 weiAmount = msg.value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment