From 804104724d66b8d7b92c46b8d9d42c41b28df848 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Thu, 27 Feb 2025 18:17:26 +0200 Subject: [PATCH] Add documentation for the StorageFiller39 contract in the TokenBridge library. This commit adds the missing documentation for the StorageFiller39 contract, which is used to reserve storage slots in the TokenBridge contract for future upgrades. The documentation explains the purpose of the contract and its implementation pattern, making it consistent with other contract documentation in the repository. --- .../tokenbridge/lib/storagefiller39.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/api/linea-smart-contracts/tokenbridge/lib/storagefiller39.mdx b/docs/api/linea-smart-contracts/tokenbridge/lib/storagefiller39.mdx index 54576613e5..2472001935 100644 --- a/docs/api/linea-smart-contracts/tokenbridge/lib/storagefiller39.mdx +++ b/docs/api/linea-smart-contracts/tokenbridge/lib/storagefiller39.mdx @@ -1,2 +1,15 @@ # `StorageFiller39` +Contract used to reserve storage slots in the TokenBridge contract. This helps maintain storage layout compatibility during upgrades. + +The StorageFiller39 reserves 39 storage slots that can be used in future upgrades without changing the storage layout of existing variables. + +```solidity +contract StorageFiller39 { + // Reserved storage slots + uint256[39] private __gap; +} +``` + +This pattern is commonly used in upgradeable contracts to ensure that new variables can be added in future versions without causing storage collisions. +