I am kinda new to Solidity.
kindly shed light in below issues:
How to properly enter token quantity in Initial Supply (in this formula) , say it is 10 million
contract MyCoin is StandardToken { string public name = "TOKKA"; string public symbol = "TOK"; uint256 public decimals = 18; uint256 constant INITIAL_SUPPLY = 1234 * 10**18; function StandardToken() public { balance[msg.sender] = INITIAL_SUPPLY; } }
In case of non mintable tokens, why we have mintable term here:
// creates the token to be sold. // override this method to have crowdsale of a specific mintable token. function createTokenContract() internal returns (StandardToken) { return new MyCoin(); }
How do you call createContract here? Where it is located?
address public token; // <---- contract used in the crowdsale function Crowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet) public { require(_startTime >= now); require(_endTime >= _startTime); require(_rate > 0); require(_wallet != address(0)); startTime = _startTime; endTime = _endTime; rate = _rate; wallet = _wallet; token = createTokenContract(); }
About RUN section of Remix:
InjectedWeb3 - why usually the Address line is empty?
- Gas limit - do I need to modify it? If I put 150.000 then all contributors must pay this gas?
- Value - wei: what and why I put? sth there?