message: DAO deploy script: allow for multiple deploys
diff: @@ -56,8 +56,10 @@ module.exports = async ({
  }
  // format transactions for Timelock to change admin to Governor
  - let currentTime = Math.floor(Date.now() / 1000);
  - let timelockNewAdmin = {
  + let timelockNewAdmin;
  + try {
  + let currentTime = (await ethers.provider.getBlock(ethers.provider.getBlockNumber())).timestamp;
  + timelockNewAdmin = {
  target: timelock.address,
  value: 0,
  signature: "setPendingAdmin(address)",
  @@ -78,6 +80,10 @@ module.exports = async ({
  );
  console.log("Queued setPendingAdmin() on Timelock.");
  + } catch (e) {
  + console.log("Skipped changing admin on Governor to Timelock.")
  + }
  +
  // perform time/block skip if local network to switch timelock admin automatically
  if (!hre.network.live) {
  @@ -121,6 +127,7 @@ module.exports = async ({
  // otherwise, output args to complete the timelock admin switch
  } else {
  + if (timelockNewAdmin) {
  console.log("---");
  console.log("Please copy these values and call executeTransaction() on Timelock");
  console.log("when the ETA is reached from the deployer address with these args:");
  @@ -134,6 +141,7 @@ module.exports = async ({
  console.log("Afterwards, do not forget to call __acceptAdmin() on Governor to");
  console.log("complete the admin switch.");
  }
  + }
  };
  