Skip to content

Commit

Permalink
feat: add args customization to deploy proxy script
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lahaye <[email protected]>
  • Loading branch information
ChrisLahaye committed Mar 7, 2024
1 parent 157fb7a commit d160897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy-proxy.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ethers, upgrades } from 'hardhat';
import * as assert from 'assert';

const { NAME } = process.env;
const { NAME, ARGS } = process.env;

async function main() {
assert.ok(NAME);

const contractFactory = await ethers.getContractFactory(NAME);

const proxy = await upgrades.deployProxy(contractFactory);
const proxy = await upgrades.deployProxy(contractFactory, ARGS && JSON.parse(ARGS) || []);

console.log(proxy.address);
}
Expand Down

0 comments on commit d160897

Please sign in to comment.