New answers tagged

0

As everything is public in the Ethereum blockchain you can't prevent someone from copying your contract. So anyone can deploy the same token contract and make a crowdsale for it. The difference is that your token and the fake token will have different addresses and they won't have anything to do with each other. The same applies to the crowdsale contract. ...


0

It seems you are asking about an ICO. If that's the case, and if you are following something like the OpenZeppelin's implementation, the SOL function you want to call is buyTokens(): function buyTokens(address beneficiary) public nonReentrant payable { uint256 weiAmount = msg.value; _preValidatePurchase(beneficiary, weiAmount); // calculate ...


Top 50 recent answers are included