Skip to content

Commit

Permalink
chore: Added prettier write command
Browse files Browse the repository at this point in the history
  • Loading branch information
tkemi committed Oct 10, 2024
1 parent 7d0e1dd commit d5619bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions contracts/mocks/Tether.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';

contract Tether is ERC20 {
constructor() ERC20("Tether", "USDT") {
constructor() ERC20('Tether', 'USDT') {
_mint(msg.sender, 100_000_000 * 10e6);
}

function decimals() public view virtual override returns (uint8) {
return 6;
}
}
}
6 changes: 3 additions & 3 deletions contracts/mocks/Token.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';

contract Token is ERC20 {
constructor() ERC20("Token", "TKN") {
constructor() ERC20('Token', 'TKN') {
_mint(msg.sender, 100_000_000 * 10e18);
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"compile": "hardhat compile",
"lint": "eslint . --ext .ts",
"prettier:check": "prettier-check contracts/**/*.sol test/**/*.ts types/*.ts",
"prettier:write": "prettier --write contracts/**/*.sol test/**/*.ts types/*.ts",
"size-contracts": "hardhat compile && hardhat size-contracts",
"test": "hardhat test",
"clear-cache": "rm -rf artifacts/ cache/ typechain/",
Expand Down

0 comments on commit d5619bc

Please sign in to comment.