From 2fca54c9eed534ae45d3dd7e9f65057d701985f7 Mon Sep 17 00:00:00 2001 From: Vaibhav Khanna Date: Fri, 15 Apr 2022 18:42:13 +0530 Subject: [PATCH] script updates --- scripts/deploy.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.ts b/scripts/deploy.ts index ceefddf..62014b4 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -5,6 +5,7 @@ // Runtime Environment's members available in the global scope. import { ethers } from "hardhat"; import { Contract } from "ethers"; +import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; const hre = require("hardhat"); const UserModuleSigs = [ @@ -28,9 +29,11 @@ async function main() { let proxy: Contract, userModule: Contract, readModule: Contract, - dummyImplementation: Contract + dummyImplementation: Contract, + signer: SignerWithAddress - const proxyAdmin = '0x85B40eb65e49eB61De78a3a989752249f8837fc5' + [signer] = await ethers.getSigners(); + const proxyAdmin = signer.address const UserModule = await ethers.getContractFactory( "contracts/example/module1/main.sol:UserModule"