Guest User

Untitled

a guest
Nov 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <div class="custom-form">
  2. <h2 class="custom-form-heading">Enter Details <a class="form-popup-close back-btn">Close</a></h2>
  3.  
  4. <div class="custom-form-group">
  5. <input class="amountBuy" placeholder="enter amount to buy in wei" />
  6. </div>
  7. <div class="custom-form-group">
  8. <button class="form-group-btn">Buy</button>
  9. </div>
  10. <div class="result"></div>
  11. </div>
  12. </div>
  13. </div>
  14.  
  15. // addUsers(msg.sender);
  16.  
  17. if (users.length>0){
  18. uint count=0;
  19. for (uint a=0;a<users.length;a++)
  20. {
  21. if (users[a]==msg.sender){
  22. count=count+1;
  23. }
  24. }
  25. if (count==0){
  26. users.push(msg.sender);
  27. }
  28.  
  29. }
  30. else{
  31. users.push(msg.sender);
  32. }
  33.  
  34.  
  35. }
Add Comment
Please, Sign In to add comment