Skip to content

Commit

Permalink
contracts-bedrock: use oz for dependency set in L1BlockInterop
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfuturistic committed May 20, 2024
1 parent e471824 commit af9b246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/contracts-bedrock/src/L2/L1BlockInterop.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity 0.8.15;

import { L1Block } from "src/L2/L1Block.sol";
import { EnumerableSetLib } from "@solady/utils/EnumerableSetLib.sol";
import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import { GasPayingToken } from "src/libraries/GasPayingToken.sol";
import { StaticConfig } from "src/libraries/StaticConfig.sol";

Expand All @@ -21,7 +21,7 @@ enum ConfigType {
/// @title L1BlockInterop
/// @notice Interop extenstions of L1Block.
contract L1BlockInterop is L1Block {
using EnumerableSetLib for EnumerableSetLib.Uint256Set;
using EnumerableSet for EnumerableSet.UintSet;

/// @notice Error when a chain ID is not in the interop dependency set.
error NotDependency();
Expand All @@ -39,7 +39,7 @@ contract L1BlockInterop is L1Block {
event DependencyRemoved(uint256 indexed chainId);

/// @notice The interop dependency set, containing the chain IDs in it.
EnumerableSetLib.Uint256Set public dependencySet;
EnumerableSet.UintSet public dependencySet;

/// @custom:semver 1.4.0+interop
function version() public pure override returns (string memory) {
Expand Down

0 comments on commit af9b246

Please sign in to comment.