Skip to content

Commit

Permalink
Add storage gap variable to the CommitteeUpgradeable contract (#19228)
Browse files Browse the repository at this point in the history
## Description 

In the case the `CommitteeUpgradeable` contract needs to include more
storage variables, a storage gap variable is needed to reserve storage
slots so the child contract state is not overwritten.

## Test plan 

Contract upgrade unit tests
  • Loading branch information
Bridgerz authored Sep 6, 2024
1 parent 6110568 commit c86143b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bridge/evm/contracts/utils/CommitteeUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ abstract contract CommitteeUpgradeable is
/* ========== STATE VARIABLES ========== */

bool private _upgradeAuthorized;
// upgradeablity storage gap
uint256[50] private __gap;

/* ========== INITIALIZER ========== */

Expand Down

0 comments on commit c86143b

Please sign in to comment.