I am unable to deploy to Ropsten using my Infura credentials
1_initial_migration.js
Deploying ‘Migrations’
Error: *** Deployment Failed ***
“Migrations” – rejected due to project ID settings.
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-deployer/src/deployment.js:364:1
at processTicksAndRejections (internal/process/next_tick.js:81:5)
Truffle v5.0.6 (core: 5.0.6)
Node v11.7.0
in truffle-config.js:
ropsten: {
provider: () =>{ return new HDWalletProvider([‘my private key’],‘https://ropsten.infura.io/v3/’)},
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
network_id: 3
},
I am using a slightly different HD Wallet Provider, one based off the private key:
const HDWalletProvider = require(‘truffle-hdwallet-provider-privkey’);
*Update:
When I removed the whitelisted ropsten address the deployment seemingly worked, however when I go to the ropsten etherscan, I see no transaction or contract address:
Migrations dry-run (simulation)
Network name: ‘ropsten-fork’
Network id: 3
Block gas limit: 8000000
1_initial_migration.js
Deploying ‘Migrations’
account: [my-ropsten-account]
balance: 5.999475076
gas used: 262462
gas price: 2 gwei
value sent: 0 ETH
total cost: 0.000524924 ETH
Total cost: 0.000524924 ETH
2_deploy_contracts.js
Deploying ‘MyFooContract’
account: [my-ropsten-account]
balance: 5.991879488
gas used: 3770786
gas price: 2 gwei
value sent: 0 ETH
total cost: 0.007541572 ETH
Total cost: 0.007541572 ETH
Summary
Total deployments: 2
Final cost: 0.008066496 ETH
Thank you!