module.exports =  {
    networks: {
        development: {
            host: "",
            port: 8545,
            network_id: "*" // Match any network id


const TokenCreate = artifacts.require('./TokenCreate.sol');

const NewToken = artifacts.require('./NewToken.sol');[![enter image description here][1]][1]

module.exports = function(deployer) {
  // Use deployer to state migration tasks.
  const openingTime = web3.eth.getBlock('latest').timestamp + 2; // two secs in the future

  const closingTime = openingTime + 86400 * 20; // 20 days

  const rate = new web3.BigNumber(1000);

  const wallet = accounts[[1]];

  return deployer

      .then(() => {

          return deployer.deploy(NewToken);


      .then(() => {

          return deployer.deploy(










pragma solidity ^0.4.22;

import "./NewToken.sol";

import "../../node_modules/zeppelin-solidity/contracts/crowdsale/emission/MintedCrowdsale.sol";

import "../../node_modules/zeppelin-solidity/contracts/crowdsale/validation/TimedCrowdsale.sol";

contract TokenCreate is MintedCrowdsale,TimedCrowdsale {

        Crowdsale(_rate, _wallet, _token) 
        TimedCrowdsale(_openingTime, _closingTime)  
        uint256 _openingTime;
        uint256 _closingTime;
        uint256 _rate;
        address _wallet;
        MintableToken _token;

closed as unclear what you're asking by Soham Lawar, Ha ĐANG, flygoing, Achala Dissanayake, shane Sep 19 '18 at 16:13

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Kindly elaborate more so that it will be helpful to understand what issue you are facing. Provide codes of smart contract as well. – Soham Lawar Sep 19 '18 at 5:48
  • I updated it ! kindly review it! @asvisosila – Sunanda Sharma Sep 19 '18 at 5:58

I have got my mistake! I have migrated NewToken instead of TokenCreate! so the right one is to migrate TokenCreate!!


You are getting an error because truffle is not able to find artifacts of smart contract TokenCreate.sol.

I think you need to install Zeppelin Solidity library locally to compile smart contract TokenCreate.

Install it first using the command

npm install zeppelin-solidity@1.7.0

Refer the following blog to understand how to create token and initial coin offering contracts using truffle and zeppelin solidity.


  • I have already installed zeppelin-solidity using this command! still got this error!@asvisosila – Sunanda Sharma Sep 19 '18 at 6:27
  • Can you tell the list JSON files in the build folder of your repository – Soham Lawar Sep 19 '18 at 6:47
  • Json files in build folder are =>**BasicToken.json , Crowdsale.json, ERC20.json, ERC20Basic.json, Migrations.json, MintableToken.json, MintedCrowdsale.json, NewToken.json, Ownable.json, safeMath.json, StandardToken.json, TimedCrowdsale.json, TokenCreate.json ** @asvisosila – Sunanda Sharma Sep 19 '18 at 7:01
  • Delete all the JSON files stored build folder and execute truffle migrate command again or execute truffle migrate --reset command – Soham Lawar Sep 19 '18 at 7:30
  • I tried it! but still error remains the same!! @asvisosila – Sunanda Sharma Sep 19 '18 at 7:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.