Categories
Cryptocurrency Ethereum Mastering Development

I am getting Error: Project ID is required deploying to ropsten in truffle

I am getting the following error:

Error: PollingBlockTracker –
encountered an error while attempting to update latest block:

Error: project ID is required

at C:\Users\myuser\Code Projects\sdfsd\node_modules@trufflesuite\web3-provider-engine\subproviders\provider.js:18:36

ropsten: {
  provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/myropstenidhere"),
  network_id: 3,
  gas: 4000000
},

live: {
  provider: () =>
  new HDWalletProvider(mnemonic,'https://mainnet.infura.io'),
  network_id: '*',
  gasPrice: 25000000000,
  gas: 5000000,
  confirmations: 2
}

Leave a Reply

Your email address will not be published. Required fields are marked *