deployProxy using Truffle errors on mainnet

// migrations/NN_deploy_upgradeable_box.js
const { deployProxy } = require('@openzeppelin/truffle-upgrades');

const Product = artifacts.require('Product');

module.exports = async function (deployer) {
  const instance = await deployProxy(Product);
  console.log('Deployed', instance.address);

I used this code deploy proxy successful on kovan,but on mainnet it can’t.Can u give me some help ,tks

1 Like

Hi @pageone,

What is the error that you get when deploying on mainnet? Can you share the output from your migration?

No error message. It deployed a normal contract ,not Upgrades.

1 Like

Hi @pageone,

deployProxy will deploy

  1. implementation contract
  2. ProxyAdmin contract
  3. proxy contract

Truffle will also deploy a Migrations contract.

Can you advise which contracts were deployed and the output of your migrations script?