Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu for hp 840 g1


     function buy ()   payable external    returns (bool){
         uint amounttoBuy =(msg.value*tokenQuantity)/1 ether;
         require(amounttoBuy<token.allowance(tokenOwner,address(this)),"Not Alloted Token to this Address");
         token.transferFrom(tokenOwner,msg.sender,amounttoBuy);
         return true;
     }
 
 
PREVIOUS NEXT
Tagged: #ubuntu #hp
ADD COMMENT
Topic
Name
9+3 =