0

enter image description here

Here is the truffle config

module.exports = {
  networks: {
    cldev: {
      host: '127.0.0.1',
      port: 8545,
      network_id: '*',
    },
    ganache: {
      host: '127.0.0.1',
      port: 7545,
      network_id: '*',
    },
    kovan: {
      provider: () => {
        return new HDWalletProvider(mnemonic, url)
      },
      network_id: '42',
      skipDryRun: true
    },
    rinkeby: {
      provider: () => {
        return new HDWalletProvider(mnemonic, url)
      },
      network_id: '4',
      skipDryRun: true
    }
  },
  compilers: {
    solc: {
      version: '0.6.12',
    },
  },
  api_keys: {
    etherscan: '<ETHERSCAN_API_KEY>'
  },
  plugins: [
    'truffle-plugin-verify'
  ]
}
Ismael
  • 30,570
  • 21
  • 53
  • 96
  • 1
    What HDWallet version are you using? Newer versions changed how to instantiate it check if that fixes it https://github.com/trufflesuite/truffle/tree/master/packages/hdwallet-provider. – Ismael Mar 20 '21 at 17:02
  • I am facing the same problem, did you find a solution? – Raw Ya Mar 21 '21 at 16:19
  • Yess turns out the problem was with truffle version . use trufflve verions 1.2.3 – Siddharth Bhoite Mar 26 '21 at 04:10

0 Answers0