I use @openzeppelin/hardhat-upgrades deploy a proxy contract.the deploy script is:
const hre = require("hardhat");
const { ethers, upgrades } = require("hardhat");
async function main() {
const MyERC20Token = await hre.ethers.getContractFactory("MyERC20Token");
const myERC20Token = await upgrades.deployProxy(MyERC20Token, []);
await myERC20Token.deployed();
console.log("MyERC20Token deployed to:", myERC20Token.address);
}
// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});
But I found that there is only one transaction on the blockchain, only one proxy contract is deployed on the blockchain, and the implemented contract and proxyAdmin Contract are not finded.
where is my problem, can anyone help me, thanks