# Truffle migrate error: "MyContract" hit a require or revert statement somewhere in its constructor

**URL:** <https://forum.openzeppelin.com/t/truffle-migrate-error-mycontract-hit-a-require-or-revert-statement-somewhere-in-its-constructor/11990>\
**Category:** Developer Wanted\
**Tags:** erc20, truffle\
**Created:** [July 6, 2021, 1:59pm UTC](https://forum.openzeppelin.com/t/truffle-migrate-error-mycontract-hit-a-require-or-revert-statement-somewhere-in-its-constructor/11990 "2021-07-06T13:59:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukeamelej](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@lukeamelej](https://forum.openzeppelin.com/u/lukeamelej)\
**Post date:** [July 6, 2021, 1:59pm UTC](https://forum.openzeppelin.com/t/truffle-migrate-error-mycontract-hit-a-require-or-revert-statement-somewhere-in-its-constructor/11990/1 "2021-07-06T13:59:57Z")

</div>

Hi there!  
I’m new in this blockchain and smart contracts world!  
I had been reading and trying too much things from this forum and the internet but nothing help me…  
I get this error when running **truffle migrate --reset**

```auto
Error: ***Deployment Failed***

"MyContract" hit a require or revert statement somewhere in its constructor. Try:
   * Verifying that your constructor params satisfy all require conditions.
   * Adding reason strings to your require statements.

```

Here is the repository with my code: [https://github.com/lucasadlerstein/my\_token\_test](https://github.com/lucasadlerstein/my_token_test)

I’m using ganache-cli, it seems to create the contract but there is an error also in the ganache terminal:

```auto
eth_sendTransaction
eth_getBlockByNumber
eth_getBlockByNumber

  Transaction: 0x67f630791af8f553f0deeb84d5d74bd3d503055a89818b980e124330033cea92
  Contract created: 0xb09bcc172050fbd4562da8b229cf3e45dc3045a6
  Gas usage: 1197955
  Block Number: 21
  Block Time: Tue Jul 06 2021 10:46:38 GMT-0300 (Argentina Standard Time)
  Runtime Error: revert

eth_call

```

Also, I don’t know exactly where I’m working… how can I found which testnet I’m working with?

```auto
$ truffle version
Truffle v5.3.14 (core: 5.3.14)
Solidity - 0.8.4 (solc-js)
Node v15.14.0
Web3.js v1.4.0

```

Thank you in advance,  
Lucas
