Hi,
I'm building a contract for a client who wishes to deploy it to the XinFin / XDC network and requires an upgradeable contract. I'm developing with Hardhat and I have successfully deployed to both the testnet and mainnet for the XDC network.
const TheToken = await ethers.getContractFactory("TheToken");
const theToken = await upgrades.deployProxy(TheToken);
await theToken.deployed();
console.log("TheToken contract address:", theToken.address);
XDC has an explorer and I would like to verify the contract on there to formalise it. Unfortunately, when I attempt this, the explorer returns a non-descriptive error. I don't get this error if my contract is not upgradeable.
Can anyone please help with suggestions on how I can move forward?
Thank you.