From ea59fadab8a668ba7d4ce53246cb72be6f7cd38f Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Wed, 22 Apr 2020 15:07:44 -0400 Subject: [PATCH] `@0x/contracts-zero-ex`: Add `Unused` to `StorageId` enum --- contracts/zero-ex/contracts/src/storage/LibStorage.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/zero-ex/contracts/src/storage/LibStorage.sol b/contracts/zero-ex/contracts/src/storage/LibStorage.sol index 403a1440c6..083f933a4f 100644 --- a/contracts/zero-ex/contracts/src/storage/LibStorage.sol +++ b/contracts/zero-ex/contracts/src/storage/LibStorage.sol @@ -30,6 +30,7 @@ library LibStorage { /// @dev Storage IDs for feature storage buckets. enum StorageId { + Unused, // Unused buffer for state accidents. Proxy, SimpleFunctionRegistry, Ownable, @@ -44,7 +45,6 @@ library LibStorage { pure returns (uint256 offset) { - // We don't use safeMul here to save gas. // This should never overflow with a reasonable `STORAGE_OFFSET_MULTIPLIER` // because Solidity will do a range check on `storageId` during the cast. return uint256(storageId) * STORAGE_OFFSET_MULTIPLIER;