From 9df91587d4461b31b5713b404f2f2032b7558f4e Mon Sep 17 00:00:00 2001 From: Danial Date: Mon, 5 Aug 2024 17:40:13 +0900 Subject: [PATCH] Fix coding style --- packages/contracts/README.md | 1 - packages/contracts/contracts/token/TestLYT.sol | 5 ++++- packages/contracts/test/helper/Deployments.ts | 4 +++- packages/validator/contracts/token/TestLYT.sol | 5 ++++- packages/validator/test/helper/Deployments.ts | 4 +++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/contracts/README.md b/packages/contracts/README.md index 195b4f9..3325a93 100644 --- a/packages/contracts/README.md +++ b/packages/contracts/README.md @@ -1,2 +1 @@ # acc-bridge-contracts-v2 - diff --git a/packages/contracts/contracts/token/TestLYT.sol b/packages/contracts/contracts/token/TestLYT.sol index 32df695..85f908c 100644 --- a/packages/contracts/contracts/token/TestLYT.sol +++ b/packages/contracts/contracts/token/TestLYT.sol @@ -7,7 +7,10 @@ contract TestLYT is BIP20DelegatedTransfer { /* * Public functions */ - constructor(address owner_, address feeAccount_) BIP20DelegatedTransfer("Loyalty Coin", "LYT", owner_, feeAccount_) { + constructor( + address owner_, + address feeAccount_ + ) BIP20DelegatedTransfer("Loyalty Coin", "LYT", owner_, feeAccount_) { _mint(owner_, 1e10 * 1e18); } diff --git a/packages/contracts/test/helper/Deployments.ts b/packages/contracts/test/helper/Deployments.ts index 611a481..5ac6ccb 100644 --- a/packages/contracts/test/helper/Deployments.ts +++ b/packages/contracts/test/helper/Deployments.ts @@ -114,7 +114,9 @@ async function deployToken(accounts: IAccount, deployment: Deployments) { console.log(`Deploy ${contractName}...`); const factory = await ethers.getContractFactory("TestLYT"); - const contract = (await factory.connect(accounts.deployer).deploy(accounts.deployer.address, accounts.protocolFee.address)) as TestLYT; + const contract = (await factory + .connect(accounts.deployer) + .deploy(accounts.deployer.address, accounts.protocolFee.address)) as TestLYT; await contract.deployed(); await contract.deployTransaction.wait(); diff --git a/packages/validator/contracts/token/TestLYT.sol b/packages/validator/contracts/token/TestLYT.sol index 32df695..85f908c 100644 --- a/packages/validator/contracts/token/TestLYT.sol +++ b/packages/validator/contracts/token/TestLYT.sol @@ -7,7 +7,10 @@ contract TestLYT is BIP20DelegatedTransfer { /* * Public functions */ - constructor(address owner_, address feeAccount_) BIP20DelegatedTransfer("Loyalty Coin", "LYT", owner_, feeAccount_) { + constructor( + address owner_, + address feeAccount_ + ) BIP20DelegatedTransfer("Loyalty Coin", "LYT", owner_, feeAccount_) { _mint(owner_, 1e10 * 1e18); } diff --git a/packages/validator/test/helper/Deployments.ts b/packages/validator/test/helper/Deployments.ts index 89fb1d5..cfba65b 100644 --- a/packages/validator/test/helper/Deployments.ts +++ b/packages/validator/test/helper/Deployments.ts @@ -109,7 +109,9 @@ async function deployToken(accounts: IAccount, deployment: Deployments) { await hre.changeNetwork(deployment.network); const factory = await hre.ethers.getContractFactory("TestLYT"); - const contract = (await factory.connect(accounts.deployer).deploy(accounts.deployer.address, accounts.protocolFee.address)) as TestLYT; + const contract = (await factory + .connect(accounts.deployer) + .deploy(accounts.deployer.address, accounts.protocolFee.address)) as TestLYT; await contract.deployed(); await contract.deployTransaction.wait();