Skip to content

Commit

Permalink
Add storage gaps into upgradeable contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Nov 26, 2024
1 parent 3742645 commit eeddd39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/sfc/NodeDriver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,6 @@ contract NodeDriver is OwnableUpgradeable, UUPSUpgradeable, INodeDriver {
function sealEpochValidators(uint256[] calldata nextValidatorIDs) external onlyNode {
backend.sealEpochValidators(nextValidatorIDs);
}

uint256[50] private __gap;
}
2 changes: 2 additions & 0 deletions contracts/sfc/NodeDriverAuth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,6 @@ contract NodeDriverAuth is OwnableUpgradeable, UUPSUpgradeable {
}
return codeHash;
}

uint256[50] private __gap;
}
2 changes: 2 additions & 0 deletions contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1146,4 +1146,6 @@ contract SFC is OwnableUpgradeable, UUPSUpgradeable, ReentrancyGuardUpgradeable,
function _now() internal view virtual returns (uint256) {
return block.timestamp;
}

uint256[50] private __gap;
}

0 comments on commit eeddd39

Please sign in to comment.