Skip to content

Commit 2576b98

Browse files
committed
Address comments
1 parent 3b1a757 commit 2576b98

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

contracts/hooks/SupplyCapAllowedCallerIssuanceHook.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ contract SupplyCapAllowedCallerIssuanceHook is Ownable, IManagerIssuanceHook {
122122
* @param _statuses Array of statuses for each caller
123123
*/
124124
function updateCallerStatus(address[] calldata _callers, bool[] calldata _statuses) external onlyOwner {
125-
require(_callers.length == _statuses.length, "Array length mismatch");
126-
require(_callers.length > 0, "Array length must be > 0");
127-
require(!_callers.hasDuplicate(), "Cannot duplicate callers");
125+
_callers.validatePairsWithArray(_statuses);
128126

129127
for (uint256 i = 0; i < _callers.length; i++) {
130128
address caller = _callers[i];

hardhat.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ const config: HardhatUserConfig = {
5858

5959
function getHardhatPrivateKeys() {
6060
return privateKeys.map(key => {
61-
const HUNDRED_THOUSAND_ETH = "100000000000000000000000";
61+
const TEN_MILLION_ETH = "10000000000000000000000000";
6262
return {
6363
privateKey: key,
64-
balance: HUNDRED_THOUSAND_ETH,
64+
balance: TEN_MILLION_ETH,
6565
};
6666
});
6767
}

0 commit comments

Comments
 (0)