0

I am trying to deploy this SampleCrowdsale example from open-zeppelin SampleCrowdsale

It requires the following inputs to deploy:

openingTime:
closingTime:
rate:
wallet:<address>
cap:
token:<address>
goal:

What are the token and wallet addresses here? I am only trying to deploy it to Ganache through Metamask.

who-aditya-nawandar
  • 1,334
  • 9
  • 39
  • 89

1 Answers1

0

The wallet is just one of your accounts (auto-generated by Ganache) The token is a ERC20Mintable token contract, which you need to create first. See the other example how to instantiate a token but you need to make it mintable as well by adding that to the is list.

Hope this helps!

Ossip
  • 1,046
  • 8
  • 20
  • What is the significance of the wallet? Does the ether used to buy the tokens go to this account? Also, do I need to deploy 2 contracts then? First deploy a token contract and then use its address as an input while deploying the SampleCrowdsale contract? – who-aditya-nawandar Dec 08 '19 at 06:40