Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
merklefruit committed Jan 8, 2025
1 parent af26324 commit 8126f66
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions smart-contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cache/
out/
4 changes: 3 additions & 1 deletion smart-contracts/foundry.toml
Original file line number Diff line number Diff line change
@@ -14,9 +14,11 @@ ignored_warnings_from = ["lib/openzeppelin-contracts/contracts"]
remappings = [
# Bolt-Registry remappings
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",

# OpenZeppelin remappings contexts
"lib/openzeppelin-contracts/:@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/"
"lib/openzeppelin-contracts/:@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"lib/openzeppelin-contracts-upgradeable/:@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/"
]

[rpc_endpoints]
4 changes: 2 additions & 2 deletions smart-contracts/src/contracts/OperatorsRegistry.sol
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ contract OperatorsRegistry is OwnableUpgradeable, UUPSUpgradeable {
OperatorMap private OPERATORS;

/// @notice The set of restaking middleware contract addresses
AddressSet private RESTAKING_MIDDLEWARES;
EnumerableSet.AddressSet private RESTAKING_MIDDLEWARES;

/**
* @dev This empty reserved space is put in place to allow future versions to add new
@@ -70,7 +70,7 @@ contract OperatorsRegistry is OwnableUpgradeable, UUPSUpgradeable {

require(signer != address(0), "Invalid operator address");
require(bytes(rpcEndpoint).length > 0, "Invalid rpc endpoint");
require(restakingMiddlewares.contains(restakingMiddleware), "Invalid restaking middleware");
require(RESTAKING_MIDDLEWARES.contains(restakingMiddleware), "Invalid restaking middleware");

OPERATORS._keys.add(key);
OPERATORS._values[key] = Operator(signer, rpcEndpoint, restakingMiddleware);

0 comments on commit 8126f66

Please sign in to comment.