Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
@0x/contracts-zero-ex: Add Unused to StorageId enum
Browse files Browse the repository at this point in the history
  • Loading branch information
dorothy-zbornak committed Apr 22, 2020
1 parent 7df6530 commit ea59fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/zero-ex/contracts/src/storage/LibStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ library LibStorage {

/// @dev Storage IDs for feature storage buckets.
enum StorageId {
Unused, // Unused buffer for state accidents.
Proxy,
SimpleFunctionRegistry,
Ownable,
Expand All @@ -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;
Expand Down

0 comments on commit ea59fad

Please sign in to comment.