From ecb14f3ce88c22d81c752f0f0cf36728283998c0 Mon Sep 17 00:00:00 2001 From: Shawn <44221603+shaspitz@users.noreply.github.com> Date: Wed, 18 Sep 2024 02:39:12 -0700 Subject: [PATCH] docs --- .../middleware/MevCommitMiddlewareStorage.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contracts/contracts/validator-registry/middleware/MevCommitMiddlewareStorage.sol b/contracts/contracts/validator-registry/middleware/MevCommitMiddlewareStorage.sol index 9c4cf578c..1adbe0fd6 100644 --- a/contracts/contracts/validator-registry/middleware/MevCommitMiddlewareStorage.sol +++ b/contracts/contracts/validator-registry/middleware/MevCommitMiddlewareStorage.sol @@ -55,9 +55,7 @@ abstract contract MevCommitMiddlewareStorage { /// by the vault. mapping(address vault => mapping(address operator => EnumerableSet.BytesSet)) internal _vaultAndOperatorToValset; - /// @notice Mapping of a vault and operator to block number to a number of validators that have been slashed. - /// @dev It would be far simpler and gas efficient to replace this with a locally instantiated mapping in slashValidators, - /// but solidity doesn't support this. See https://forum.soliditylang.org/t/mapping-in-memory-functions-optimisation/873 + /// @notice Mapping of a vault and operator to block number to slash record. mapping(address vault => mapping(address operator => mapping(uint256 blockNumber => IMevCommitMiddleware.SlashRecord))) internal _slashRecords; /// @dev See https://docs.openzeppelin.com/upgrades-plugins/1.x/writing-upgradeable#storage-gaps