Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set deployer as owner in non live networks #54

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: stop changing the owner of PSR on no-live networks
chechu committed Jan 2, 2024
commit 40987e77989da37437b129be2946684fdfd2bafd
11 changes: 1 addition & 10 deletions deploy/1-deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import hre, { ethers } from "hardhat";
import { ethers } from "hardhat";
import { DeployFunction } from "hardhat-deploy/types";
import { HardhatRuntimeEnvironment } from "hardhat/types";

@@ -32,15 +32,6 @@ const func: DeployFunction = async ({
},
},
});

const psr = await hre.ethers.getContract("ProtocolShareReserve");
const psrOwner = await psr.owner();

if (psrOwner === deployer) {
const tx = await psr.transferOwnership(timelockAddress);
await tx.wait();
console.log("Transferred ownership of PSR to Timelock");
}
};

func.tags = ["deploy"];