Open NufailIsmath opened 1 year ago
this should be
const proxyOptionBase = { proxyContract: "ECOERC1155_ERC1967Proxy" };
const proxyOption = {
...proxyOptionBase, // to ensure proxyContract is speciied
execute: {
methodName: "upgradeTo",
args: [],
},
};
I tried that too, got the same error
so maybe you contract ECOERC1155
has also a function called upgradeTo ?
have the same error, while trying to use an Upgradeable contract from OppenZeppelin generated with their wizzard
you can find upgradeTo
method in OppenZeppelin's UUPSUpgradeable
abstract contract.
@wighawag, could you please take a look at that?
I really don't want to exclude UUPSUpgradeable
contract, because it adds extra security on upgradeTo
method.
https://github.com/wighawag/hardhat-deploy/issues/242 this might help
@mmelnic if the implementation has an upgradeTo then it is expected that it uses an UUPS proxy
I didn't manage to make this work with upgradeTo but what I am sure is missing that upgradeTo needs to get a parametar in args with new implementation address.
execute: {
methodName: 'upgradeTo',
args: [newImplementation.address],
},
Error: function "upgradeTo" will shadow "upgradeTo". Getting this error when I try to run hardhat deploy
deploy.js
Expected behavior To deploy proxy and the implementation
versions