Skip to content

Commit

Permalink
fix populate script
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Feb 11, 2024
1 parent a2b176a commit 8ba5034
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/dev/populate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,19 @@ async function uploadFileToPinata(b: Buffer): Promise<string> {
}

export async function main() {
console.log(`🟡 Populating Allo V2 (pinataBaseUrl ${pinataBaseUrl})`);
const [account] = await ethers.getSigners();
const accountAddress = await account.getAddress();

console.log(
`🟡 Allo V2 - Populating (address: ${accountAddress}, pinataBaseUrl ${pinataBaseUrl})`
);
if (hre.network.name !== "dev1" && hre.network.name !== "dev2") {
console.error("This script can only be use in local dev environments");
process.exit(1);
}

const network = await ethers.provider.getNetwork();
const chainId = Number(network.chainId);
const account = (await ethers.getSigners())[0];
const deployments = new Deployments(chainId, "allo");
const registryAddress = deployments.getRegistry();

Expand Down

0 comments on commit 8ba5034

Please sign in to comment.