Skip to content

Commit 8f7ae67

Browse files
committed
Made the default functionality 'buy' for ease of use to investors
1 parent abcd3b5 commit 8f7ae67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

smart_token/PIXTokenCrowdsale_audited.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ contract SafeMath {
3939
*
4040
* https://github.com/ethereum/EIPs/issues/20
4141
*/
42-
interface Token {
42+
contract Token {
4343

4444
/// @return total amount of tokens
4545
function totalSupply() constant returns (uint256 supply);
@@ -450,8 +450,8 @@ contract PIXToken is StandardToken, SafeMath {
450450
return super.transferFrom(_from, _to, _value);
451451
}
452452

453-
function() {
454-
revert();
453+
function() payable {
454+
buyRecipient(msg.sender);
455455
}
456456

457457
}
-4 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)