From def8663375a5b0a7a9ff8ba4e826ac585a060ef8 Mon Sep 17 00:00:00 2001 From: Michael Kim Date: Mon, 25 Sep 2023 12:40:22 +0900 Subject: [PATCH] Fix test code --- packages/contracts/test/Ledger.test.ts | 2 +- packages/contracts/test/ShopCollection.test.ts | 2 +- packages/contracts/test/TokenPrice.test.ts | 2 +- packages/contracts/test/ValidatorCollection.test.ts | 2 +- packages/relay/test/Endpoints.test.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/contracts/test/Ledger.test.ts b/packages/contracts/test/Ledger.test.ts index d4d9677f..0b9e8096 100644 --- a/packages/contracts/test/Ledger.test.ts +++ b/packages/contracts/test/Ledger.test.ts @@ -53,7 +53,7 @@ describe("Test for Ledger", () => { const deployToken = async () => { const tokenFactory = await hre.ethers.getContractFactory("Token"); - tokenContract = (await tokenFactory.connect(deployer).deploy("Sample", "SAM")) as Token; + tokenContract = (await tokenFactory.connect(deployer).deploy(deployer.address, "Sample", "SAM")) as Token; await tokenContract.deployed(); await tokenContract.deployTransaction.wait(); for (const elem of validators) { diff --git a/packages/contracts/test/ShopCollection.test.ts b/packages/contracts/test/ShopCollection.test.ts index 31318ded..00ef47b0 100644 --- a/packages/contracts/test/ShopCollection.test.ts +++ b/packages/contracts/test/ShopCollection.test.ts @@ -26,7 +26,7 @@ describe("Test for ShopCollection", () => { before(async () => { const tokenFactory = await hre.ethers.getContractFactory("Token"); - tokenContract = (await tokenFactory.connect(deployer).deploy("Sample", "SAM")) as Token; + tokenContract = (await tokenFactory.connect(deployer).deploy(deployer.address, "Sample", "SAM")) as Token; await tokenContract.deployed(); await tokenContract.deployTransaction.wait(); for (const elem of validators) { diff --git a/packages/contracts/test/TokenPrice.test.ts b/packages/contracts/test/TokenPrice.test.ts index b7e620bc..87f47af6 100644 --- a/packages/contracts/test/TokenPrice.test.ts +++ b/packages/contracts/test/TokenPrice.test.ts @@ -25,7 +25,7 @@ describe("Test for TokenPrice", () => { before(async () => { const tokenFactory = await hre.ethers.getContractFactory("Token"); - tokenContract = (await tokenFactory.connect(deployer).deploy("Sample", "SAM")) as Token; + tokenContract = (await tokenFactory.connect(deployer).deploy(deployer.address, "Sample", "SAM")) as Token; await tokenContract.deployed(); await tokenContract.deployTransaction.wait(); for (const elem of validators) { diff --git a/packages/contracts/test/ValidatorCollection.test.ts b/packages/contracts/test/ValidatorCollection.test.ts index f142fc5d..9738ea1e 100644 --- a/packages/contracts/test/ValidatorCollection.test.ts +++ b/packages/contracts/test/ValidatorCollection.test.ts @@ -25,7 +25,7 @@ describe("Test for ValidatorCollection", () => { before(async () => { const tokenFactory = await hre.ethers.getContractFactory("Token"); - tokenContract = (await tokenFactory.connect(deployer).deploy("Sample", "SAM")) as Token; + tokenContract = (await tokenFactory.connect(deployer).deploy(deployer.address, "Sample", "SAM")) as Token; await tokenContract.deployed(); await tokenContract.deployTransaction.wait(); for (const elem of validators) { diff --git a/packages/relay/test/Endpoints.test.ts b/packages/relay/test/Endpoints.test.ts index 24256995..013686aa 100644 --- a/packages/relay/test/Endpoints.test.ts +++ b/packages/relay/test/Endpoints.test.ts @@ -64,7 +64,7 @@ describe("Test of Server", function () { const deployToken = async () => { const tokenFactory = await hre.ethers.getContractFactory("Token"); - tokenContract = (await tokenFactory.connect(deployer).deploy("Sample", "SAM")) as Token; + tokenContract = (await tokenFactory.connect(deployer).deploy(deployer.address, "Sample", "SAM")) as Token; await tokenContract.deployed(); await tokenContract.deployTransaction.wait(); for (const elem of validators) {