Skip to content

Commit

Permalink
Fix test code
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Sep 25, 2023
1 parent 30cfb04 commit def8663
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/test/Ledger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/test/ShopCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/test/TokenPrice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/test/ValidatorCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/relay/test/Endpoints.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit def8663

Please sign in to comment.