Skip to content

Commit

Permalink
Using address in setting new owner
Browse files Browse the repository at this point in the history
  • Loading branch information
linked0 committed Nov 11, 2022
1 parent 6928323 commit f5670b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion env/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ COMMONS_BUDGET_CONTRACT=0xeEdC2Ac65dF232AB6d229EBD4E3F564e194ffe7D

BUDGET_AMOUNT_BOA=10000
CURRENT_OWNER=0xd7912c64125d466be55d2ac220834571a39ff9abeb9ad6dfb6afe9a3a433ba7d
NEW_OWNER=0x968c5160a45d3891f424c18f06f83d56f4f2e1461d177fd84a0bfc5f993176a1
NEW_OWNER=0xC64edC529C17D593f5339E02C9055312cE0718B7
6 changes: 3 additions & 3 deletions scripts/set_owner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ async function main() {
const curOwnerSigner = new NonceManager(new GasPriceManager(provider.getSigner(curOwner.address)));

const issued = await issuedFactory.attach(process.env.ISSUED_CONTRACT || "");
const newOwner = new Wallet(process.env.NEW_OWNER || "");
await issued.connect(curOwnerSigner).setOwner(newOwner.address);
console.log("New owner set to IssuedContract:", newOwner.address);
const newOwner = process.env.NEW_OWNER || "";
await issued.connect(curOwnerSigner).setOwner(newOwner);
console.log("New owner set to IssuedContract:", newOwner);
}

// We recommend this pattern to be able to use async/await everywhere
Expand Down

0 comments on commit f5670b8

Please sign in to comment.