Skip to content

Commit 3a4ebe1

Browse files
committed
refactor: initial setup ERC20Issuance_Blacklist_v1
- Moved file - Removed unnecessary imports - Use only exposed mock for testing
1 parent d89392a commit 3a4ebe1

4 files changed

+180
-123
lines changed

src/external/token/ERC20Issuance_Blacklist_v1.sol

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// SPDX-License-Identifier: LGPL-3.0-only
32
pragma solidity 0.8.23;
43

@@ -106,7 +105,11 @@ contract ERC20Issuance_Blacklist_v1 is
106105
}
107106

108107
/// @inheritdoc IERC20Issuance_Blacklist_v1
109-
function isBlacklistManager(address account_) external view returns (bool) {
108+
function isBlacklistManager(address account_)
109+
external
110+
view
111+
returns (bool)
112+
{
110113
return _isBlacklistManager[account_];
111114
}
112115

@@ -136,9 +139,7 @@ contract ERC20Issuance_Blacklist_v1 is
136139
}
137140

138141
/// @inheritdoc IERC20Issuance_Blacklist_v1
139-
function addToBlacklistBatched(address[] memory accounts_)
140-
external
141-
{
142+
function addToBlacklistBatched(address[] memory accounts_) external {
142143
uint totalAccounts = accounts_.length;
143144
if (totalAccounts > BATCH_LIMIT) {
144145
revert ERC20Issuance_Blacklist_BatchLimitExceeded(
@@ -151,9 +152,7 @@ contract ERC20Issuance_Blacklist_v1 is
151152
}
152153

153154
/// @inheritdoc IERC20Issuance_Blacklist_v1
154-
function removeFromBlacklistBatched(address[] memory accounts_)
155-
external
156-
{
155+
function removeFromBlacklistBatched(address[] memory accounts_) external {
157156
uint totalAccounts = accounts_.length;
158157
if (totalAccounts > BATCH_LIMIT) {
159158
revert ERC20Issuance_Blacklist_BatchLimitExceeded(

src/external/token/interfaces/IERC20Issuance_Blacklist_v1.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ interface IERC20Issuance_Blacklist_v1 is IERC20Issuance_v1 {
122122
/// @param allowed_ Whether to grant (true) or revoke (false) the role.
123123
/// @dev May revert with ERC20Issuance_Blacklist_ZeroAddress.
124124
function setBlacklistManager(address manager_, bool allowed_) external;
125-
}
125+
}

0 commit comments

Comments
 (0)