Skip to content

Commit 12b5019

Browse files
committed
fixed formatting
1 parent a4122dd commit 12b5019

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

src/token/ERC20/ERC20/ERC20MetadataFacet.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
pragma solidity >=0.8.30;
33

44
contract ERC20MetadataFacet {
5-
65
/**
76
* @dev Storage position determined by the keccak256 hash of the diamond storage identifier.
87
*/
@@ -12,7 +11,7 @@ contract ERC20MetadataFacet {
1211
* @dev ERC-8042 compliant storage struct for ERC20 token data.
1312
* @custom:storage-location erc8042:compose.erc20.metadata
1413
*/
15-
struct ERC20MetadataStorage {
14+
struct ERC20MetadataStorage {
1615
string name;
1716
string symbol;
1817
uint8 decimals;
@@ -53,4 +52,4 @@ contract ERC20MetadataFacet {
5352
function decimals() external view returns (uint8) {
5453
return getStorage().decimals;
5554
}
56-
}
55+
}

src/token/ERC20/ERC20/ERC20TransferFacet.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ contract ERC20TransferFacet {
6464
struct ERC20TransferStorage {
6565
mapping(address owner => uint256 balance) balanceOf;
6666
uint256 totalSupply;
67-
mapping(address owner => mapping(address spender => uint256 allowance)) allowance;
67+
mapping(address owner => mapping(address spender => uint256 allowance)) allowance;
6868
}
6969

7070
/**
@@ -77,7 +77,7 @@ contract ERC20TransferFacet {
7777
assembly {
7878
s.slot := position
7979
}
80-
}
80+
}
8181

8282
/**
8383
* @notice Returns the total supply of tokens.

src/token/ERC20/ERC20Permit/ERC20PermitFacet.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ contract ERC20PermitFacet {
3232

3333
bytes32 constant ERC20_METADATA_STORAGE_POSITION = keccak256("compose.erc20.metadata");
3434

35-
/**
35+
/**
3636
* @custom:storage-location erc8042:compose.erc20.metadata
3737
*/
3838
struct ERC20MetadataStorage {
@@ -54,7 +54,7 @@ contract ERC20PermitFacet {
5454
struct ERC20TransferStorage {
5555
mapping(address owner => uint256 balance) balanceOf;
5656
uint256 totalSupply;
57-
mapping(address owner => mapping(address spender => uint256 allowance)) allowance;
57+
mapping(address owner => mapping(address spender => uint256 allowance)) allowance;
5858
}
5959

6060
function getERC20TransferStorage() internal pure returns (ERC20TransferStorage storage s) {

src/token/ERC20/ERC20Permit/ERC20PermitMod.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ event Approval(address indexed _owner, address indexed _spender, uint256 _value)
3737

3838
bytes32 constant ERC20_METADATA_STORAGE_POSITION = keccak256("compose.erc20.metadata");
3939

40-
/**
41-
* @custom:storage-location erc8042:compose.erc20.metadata
42-
*/
40+
/**
41+
* @custom:storage-location erc8042:compose.erc20.metadata
42+
*/
4343
struct ERC20MetadataStorage {
4444
string name;
4545
}
@@ -54,12 +54,12 @@ function getERC20MetadataStorage() pure returns (ERC20MetadataStorage storage s)
5454
bytes32 constant ERC20_TRANSFER_STORAGE_POSITION = keccak256("compose.erc20.transfer");
5555

5656
/**
57-
* @custom:storage-location erc8042:compose.erc20.transfer
58-
*/
57+
* @custom:storage-location erc8042:compose.erc20.transfer
58+
*/
5959
struct ERC20TransferStorage {
6060
mapping(address owner => uint256 balance) balanceOf;
6161
uint256 totalSupply;
62-
mapping(address owner => mapping(address spender => uint256 allowance)) allowance;
62+
mapping(address owner => mapping(address spender => uint256 allowance)) allowance;
6363
}
6464

6565
function getERC20TransferStorage() pure returns (ERC20TransferStorage storage s) {

0 commit comments

Comments
 (0)