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
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
I’m using ganache-cli, it seems to create the contract but there is an error also in the ganache terminal:
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?
$ 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