misc: Added proxy admin address as explicit variable.

This commit is contained in:
Peter Michael
2022-05-09 11:20:38 -04:00
parent 1f82b28417
commit 2212571d54
2 changed files with 4 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ task('full-deploy-verify', 'deploys the entire Lens Protocol with explorer verif
const deployer = accounts[0];
const governance = accounts[1];
const treasuryAddress = accounts[2].address;
const proxyAdminAddress = deployer.address;
// Nonce management in case of deployment issues
let deployerNonce = await ethers.provider.getTransactionCount(deployer.address);
@@ -144,7 +145,7 @@ task('full-deploy-verify', 'deploys the entire Lens Protocol with explorer verif
let proxy = await deployWithVerify(
new TransparentUpgradeableProxy__factory(deployer).deploy(
lensHubImpl.address,
deployer.address,
proxyAdminAddress,
data,
{ nonce: deployerNonce++ }
),

View File

@@ -41,6 +41,7 @@ task('full-deploy', 'deploys the entire Lens Protocol').setAction(async ({}, hre
const deployer = accounts[0];
const governance = accounts[1];
const treasuryAddress = accounts[2].address;
const proxyAdminAddress = deployer.address;
// Nonce management in case of deployment issues
let deployerNonce = await ethers.provider.getTransactionCount(deployer.address);
@@ -114,7 +115,7 @@ task('full-deploy', 'deploys the entire Lens Protocol').setAction(async ({}, hre
let proxy = await deployContract(
new TransparentUpgradeableProxy__factory(deployer).deploy(
lensHubImpl.address,
deployer.address,
proxyAdminAddress,
data,
{ nonce: deployerNonce++ }
)