Skip to content

Commit

Permalink
Add storage gaps into upgradeable contracts (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ authored Dec 16, 2024
1 parent 70b03aa commit 2cdaaa4
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 @@ -1149,4 +1149,6 @@ contract SFC is OwnableUpgradeable, UUPSUpgradeable, Version {
function _now() internal view virtual returns (uint256) {
return block.timestamp;
}

uint256[50] private __gap;
}

0 comments on commit 2cdaaa4

Please sign in to comment.