Skip to content

how to use my existing token in crowdsale? #717

@hasin0525

Description

@hasin0525

🎉 Description

The current crowdsale code is a form that generates and distributes tokens. I would like to have a crowd sale with a token I have already created.

  • 🐛 This is a bug report.
  • [] 📈 This is a feature request.

💻 Environment

Next, we need to know what your environment looks like.

  • Which version of OpenZeppelin are you using? 1.6.0
  • What network are you deploying to? testrpc? Ganache? Ropsten? kovan
  • How are you deploying your OpenZeppelin-backed contracts? truffle? Remix? Let us know! remix

📝 Details

Describe the problem you have been experiencing in more detail. Include as much information as you think is relevant. Keep in mind that transactions can fail for many reasons; context is key here.

🔢 Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.

insert short code snippets here
  
function Crowdsale() public {
    cap = 1000000000000000000;
    startTime = 1517410800;
    endTime = 1517448600;
    rate = 1000;
    wallet = address;
    token = new MintableToken(); --> this i want to use my existing mintabletoken!
  }

I change that token = new MintableToken() -> MintableToken(address)
but error exist...

## 👍 Other Information

<!-- List any other information that is relevant to your issue. Error logs, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions