Skip to content

Commit

Permalink
Added more __gap
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Mar 11, 2024
1 parent 5cf80cd commit fdf190c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/handlers/ERC1155Handler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import {IERC1155MintableBurnable} from "../interfaces/tokens/IERC1155MintableBur
* @title ERC1155Handler
*/
abstract contract ERC1155Handler is IERC1155Handler, ERC1155Holder {
/**
* @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[50] private __gap;

modifier onlyNotStopped() virtual {
_;
}
Expand Down
7 changes: 7 additions & 0 deletions contracts/handlers/ERC20Handler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import {IERC20MintableBurnable} from "../interfaces/tokens/IERC20MintableBurnabl
abstract contract ERC20Handler is IERC20Handler {
using SafeERC20 for IERC20MintableBurnable;

/**
* @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[50] private __gap;

modifier onlyNotStopped() virtual {
_;
}
Expand Down
7 changes: 7 additions & 0 deletions contracts/handlers/ERC721Handler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import {IERC721MintableBurnable} from "../interfaces/tokens/IERC721MintableBurna
* @title ERC721Handler
*/
abstract contract ERC721Handler is IERC721Handler, ERC721Holder {
/**
* @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[50] private __gap;

modifier onlyNotStopped() virtual {
_;
}
Expand Down
7 changes: 7 additions & 0 deletions contracts/handlers/NativeHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import {INativeHandler} from "../interfaces/handlers/INativeHandler.sol";
* @title NativeHandler
*/
abstract contract NativeHandler is INativeHandler {
/**
* @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[50] private __gap;

modifier onlyNotStopped() virtual {
_;
}
Expand Down

0 comments on commit fdf190c

Please sign in to comment.