Guest User

Untitled

a guest
Apr 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. pragma solidity ^0.4.18;
  2.  
  3. contract MinInvest {
  4.  
  5. function validPurchase() internal returns (bool) {
  6. bool moreThanMinimalInvestment = msg.value >= 0.1 ether; // change the value to whatever you need
  7. return super.validPurchase() && moreThanMinimalInvestment;
  8. }
  9. }
Add Comment
Please, Sign In to add comment