How to Set the from address for proxy upgrade and proxy deploy in Hardhat tests

Hi. How can I Set the from address for proxy upgrade and proxy deploy in Hardhat tests?
I copied the example below from the upgrades plugin document page… but could not figure out how to set the from address…
https://docs.openzeppelin.com/upgrades-plugins/1.x/

const { ethers, upgrades } = require(“hardhat”);

async function main() {
const [signer0, signer1, signer2, signer3, signer4, …addrs] = await hre.ethers.getSigners();
// Deploying
const Box = await ethers.getContractFactory(“Box”);
const instance = await upgrades.deployProxy(Box, [42]);
await instance.deployed();

// Upgrading
const BoxV2 = await ethers.getContractFactory(“BoxV2”);
const upgraded = await upgrades.upgradeProxy(instance.address, BoxV2);
const upgradedB = await upgrades.upgradeProxy(instance.address, BoxV2,
{ from: signer4.address, deployer: signer4.address});// DOSE NOT WORK
}
main();

please help. Thank you

The way to customize this currently is by configuring from in your config.


As a side note, avoid phrases like “please help” in future posts. It does nothing to improve your chances of getting an answer.