Skip to content

Commit

Permalink
interface now how floating pragma so can be inherited by newer compil…
Browse files Browse the repository at this point in the history
…ers. Also ran forge fmt
  • Loading branch information
mpeyfuss committed Dec 26, 2023
1 parent 804c4b4 commit 3c7736f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/BlockAllRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@ import {IBlockListRegistry} from "src/IBlockListRegistry.sol";
/// @author transientlabs.xyz
/// @custom:version 4.0.2
contract BlockAllRegistry is IBlockListRegistry {

/// @inheritdoc IBlockListRegistry
function getBlockListStatus(address /*operator*/) external pure override returns(bool) {
function getBlockListStatus(address /*operator*/ ) external pure override returns (bool) {
return true;
}

/// @inheritdoc IBlockListRegistry
function setBlockListStatus(address[] calldata /*operators*/, bool /*status*/) external pure override {
function setBlockListStatus(address[] calldata, /*operators*/ bool /*status*/ ) external pure override {
revert();
}

/// @inheritdoc IBlockListRegistry
function clearBlockList() external pure override {
revert();
}

}
}
1 change: 0 additions & 1 deletion src/BlockListRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {IBlockListRegistry} from "src/IBlockListRegistry.sol";
/// @author transientlabs.xyz
/// @custom:version 4.0.0
contract BlockListRegistry is IBlockListRegistry, OwnableAccessControlUpgradeable, ERC165Upgradeable {

/*//////////////////////////////////////////////////////////////////////////
Constants
//////////////////////////////////////////////////////////////////////////*/
Expand Down
4 changes: 2 additions & 2 deletions src/IBlockListRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity ^0.8.19;

/// @title BlockList Registry
/// @notice Interface for the BlockListRegistry Contract
/// @author transientlabs.xyz
/// @custom:version 4.0.2
/// @custom:version 4.0.3
interface IBlockListRegistry {
/*//////////////////////////////////////////////////////////////////////////
Events
Expand Down
3 changes: 1 addition & 2 deletions test/BlockAllRegistry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "forge-std/Test.sol";
import {BlockAllRegistry} from "src/BlockAllRegistry.sol";

contract BlockAllRegistryUnitTest is Test {

BlockAllRegistry public registry;

function setUp() public {
Expand All @@ -26,4 +25,4 @@ contract BlockAllRegistryUnitTest is Test {
vm.expectRevert();
registry.clearBlockList();
}
}
}

0 comments on commit 3c7736f

Please sign in to comment.