Skip to content

How to deploy with alternate account? #2745

Discussion options

You must be logged in to vote

In case anyone has the same question, I got this to work by using the connect method on the Contract Factory.

const accounts = await ethers.getSigners();
const account = accounts[17];

const TT = await ethers.getContractFactory("Contract");

const contract = (await upgrades.deployProxy(
    TT.connect(account),
    ["https://testnet.tableland.network/tables/"],
    {
      kind: "uups",
    }
));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joewagner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant