Running into a weird issue here when I run migrations on truffle. I’m getting
Error: *** Deployment Failed ***
“contract” 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.
Even though I’m using the same migration script and I’m able to deploy on Kovan and Rinkeby. Is there any reason to this?
Here’s my flow:
- set up truffle config
matic: {
provider: function() {
return new HDWalletProvider(
mnemonic,
https://rpc-mumbai.matic.today
);
},
network_id: 80001,
gas: 4500000,
gasPrice: 10000000000
},
- run truffle migrate --network matic
- run my migration