There is a conflict with the @openzepplin/hardhat-upgrades library that requires using the nativeContractFactory object when deploying a beacon proxy if the tenderly automagic setup() is used.
Expected Behavior:
const { ethers, upgrades } = require("hardhat");
const code = await ethers.getContractProxy("someContract");
const beacon = await deployBeacon(code);
const beaconProxy = await upgrades.deployBeaconProxy(beacon.address, code, [...])
console.log("my beacon proxy has been deployed with tenderly!")
Instead this is the required modification for this to work:
const { ethers, upgrades } = require("hardhat");
const code = await ethers.getContractProxy("someContract");
const beacon = await deployBeacon(code);
const code_native = code.nativeContractFactory;
const beaconProxy = await upgrades.deployBeaconProxy(beacon.address, code_native , [...])
console.log("my beacon proxy has been deployed with tenderly!")
Would love to get that supported 🙏 BeaconProxies are amazing and something we utilize everywhere.
There is a conflict with the
@openzepplin/hardhat-upgradeslibrary that requires using thenativeContractFactoryobject when deploying a beacon proxy if the tenderly automagic setup() is used.Expected Behavior:
Instead this is the required modification for this to work:
Would love to get that supported 🙏 BeaconProxies are amazing and something we utilize everywhere.