Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
danial303065 authored and MichaelKim20 committed Aug 5, 2024
1 parent 819893f commit 9df9158
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# acc-bridge-contracts-v2

5 changes: 4 additions & 1 deletion packages/contracts/contracts/token/TestLYT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 3 additions & 1 deletion packages/contracts/test/helper/Deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
5 changes: 4 additions & 1 deletion packages/validator/contracts/token/TestLYT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 3 additions & 1 deletion packages/validator/test/helper/Deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9df9158

Please sign in to comment.