Problem with deploying Smart Contracts on Polygon Testnet

I did this tutorial: https://www.youtube.com/watch?v=v6nU4iyLpX4
Only difference in my truffle-config.js, because i want to deploy to polygon testnet.

matic: {
      provider: () => new HDWalletProvider(mnemonic,`https://speedy-nodes-nyc.moralis.io/96533ea1ca8f9a3343acb8a2/polygon/mumbai`),
      network_id: 80001,
      confirmations: 2,
      timeoutBlocks: 200,
      skipDryRun: true,
      gas: 6000000,
      gasPrice: 10000000000,
    },

But when I migrate it doesn’t work

1 Like

Hi @Manuel138

This solution should help Coin Flip - Can't compile smart contract @openzeppelin [Solved]

1 Like

Thanks! Just needed to do: npm install @openzeppelin/contracts