I am facing the same issue but I am using the hardhat to deploy.
Contract Address: https://mumbai.polygonscan.com/address/0x78b38a1f20e36daade89be5cccbb8bd568edf342#readContract
function initialize() initializer public {
__ERC721_init("LayersID", "LYID");
__ERC721Enumerable_init();
__ERC721URIStorage_init();
__Ownable_init();
__UUPSUpgradeable_init();
}
Deploy Script
const ProfileImage = await ethers.getContractFactory('ProfileTokenURILogicV1');
const profileImage = await ProfileImage.deploy()
console.log("Image Address : ",profileImage.target)
const LayersIdV1 = await ethers.getContractFactory('LayersID',{
libraries:{
ProfileTokenURILogicV1:profileImage.target
}
});
const layersId = await upgrades.deployProxy(
LayersIdV1,
{
unsafeAllowLinkedLibraries:true,
pollingInterval:50000,
kind:'uups'
}
);
console.log(layersId.target)
I am attaching an external library. On local the owner is deployer but on testnet it's address zero.