Skip to content

Commit 94520f9

Browse files
committed
fix: add storage gaps to GraphTokenGateway and GraphTokenUpgradeable (C4 M-244)
1 parent 2dfacb6 commit 94520f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

contracts/gateway/GraphTokenGateway.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import "../governance/Managed.sol";
1212
* @dev This includes everything that's shared between the L1 and L2 sides of the bridge.
1313
*/
1414
abstract contract GraphTokenGateway is GraphUpgradeable, Pausable, Managed, ITokenGateway {
15+
// Storage gap added in case we need to add state variables to this contract
16+
uint256[50] private __gap;
17+
1518
/**
1619
* @dev Check if the caller is the Controller's governor or this contract's pause guardian.
1720
*/

contracts/l2/token/GraphTokenUpgradeable.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ contract GraphTokenUpgradeable is GraphUpgradeable, Governed, ERC20BurnableUpgra
5050
bytes32 private DOMAIN_SEPARATOR;
5151
mapping(address => bool) private _minters;
5252
mapping(address => uint256) public nonces;
53+
// Storage gap added in case we need to add state variables to this contract
54+
uint256[50] private __gap;
5355

5456
// -- Events --
5557

0 commit comments

Comments
 (0)