Skip to content

Commit

Permalink
audit: L-02 No Gap Variable (#591)
Browse files Browse the repository at this point in the history
* fix: use gaps in SimpleQuorumExecutionStrategy and StarnketSpaceManager
---------

Co-authored-by: Orland0x <[email protected]>
  • Loading branch information
pscott and Orland0x authored Oct 10, 2023
1 parent 06ec6f5 commit cc1ef75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ abstract contract SimpleQuorumExecutionStrategy is IExecutionStrategy, StarknetS
}

function getStrategyType() external view virtual override returns (string memory);

/// @dev This empty reserved space is put in place to allow future versions to add new
/// variables without shifting down storage in the inheritance chain.
/// See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
uint256[49] private __gap;
}
5 changes: 5 additions & 0 deletions ethereum/src/execution-strategies/StarknetSpaceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@ contract StarknetSpaceManager is OwnableUpgradeable {
if (spaces[space] == FALSE) revert InvalidSpace();
_;
}

/// @dev This empty reserved space is put in place to allow future versions to add new
/// variables without shifting down storage in the inheritance chain.
/// See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
uint256[49] private __gap;
}

0 comments on commit cc1ef75

Please sign in to comment.