Open davidperk opened 9 months ago
Please use this pattern to get the contract address using getAddress() function
` import { ethers, upgrades } from "hardhat";
async function main() { console.log( "🖖🏽[ethers] Deploying TransparentUpgradeableProxy with VotingLogic as implementation on Tenderly.", );
const VotingLogic = await ethers.getContractFactory("VotingLogic");
let proxyContract = await upgrades.deployProxy(VotingLogic);
proxyContract = await proxyContract.waitForDeployment();
const proxyAddress = await proxyContract.getAddress();
console.log("VotingLogic proxy deployed to:", proxyAddress);
console.log(
"VotingLogic impl deployed to:",
await getImplementationAddress(ethers.provider, proxyAddress),
);
}
main().catch((error) => { console.error(error); process.exitCode = 1; }); `
const VotingLogic = await ethers.getContractFactory("VotingLogic"); let proxyContract = await upgrades.deployProxy(VotingLogic); proxyContract = await proxyContract.waitForDeployment();
const proxyAddress = await proxyContract.getAddress();
console.log("VotingLogic proxy deployed to:", proxyAddress); console.log( "VotingLogic impl deployed to:", await getImplementationAddress(ethers.provider, proxyAddress), );
I'm getting this error from @tenderly/hardhat-tenderly when I run my deploy script. When I comment out
tdly.setup();
from hardhat.config.ts, the deploy script runs successfully.My deploy script:
My Hardhat config:
My devDependencies: