Skip to content

fix(ZkSync_SpokePool): Add __gap #907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contracts/ZkSync_SpokePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,9 @@ contract ZkSync_SpokePool is SpokePool {
}

function _requireAdminSender() internal override onlyFromCrossDomainAdmin {}

// Reserve storage slots for future versions of this base contract to add state variables without
// affecting the storage layout of child contracts. Decrement the size of __gap whenever state variables
// are added. This is at bottom of contract to make sure it's always at the end of storage.
uint256[1000] private __gap;
}
6 changes: 6 additions & 0 deletions storage-layouts/ZkSync_SpokePool.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@
"label": "zkErc20Bridge",
"offset": 0,
"slot": "3163"
},
{
"contract": "contracts/ZkSync_SpokePool.sol:ZkSync_SpokePool",
"label": "__gap",
"offset": 0,
"slot": "3164"
}
]
}
Loading