Skip to content

Commit

Permalink
Add storage gap to upgradeable contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
ermyas committed Nov 20, 2023
1 parent 421221e commit 24df837
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/child/ChildAxelarBridgeAdaptor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,7 @@ contract ChildAxelarBridgeAdaptor is
emit AdaptorExecute(sourceChain_, sourceAddress_, payload_);
childBridge.onMessageReceive(sourceChain_, sourceAddress_, payload_);
}

// slither-disable-next-line unused-state,naming-convention
uint256[50] private __gapChildAxelarBridgeAdaptor;
}
3 changes: 3 additions & 0 deletions src/child/ChildERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,7 @@ contract ChildERC20Bridge is IChildERC20BridgeErrors, IChildERC20Bridge, IChildE
emit IMXDeposit(rootToken, sender, receiver, amount);
}
}

// slither-disable-next-line unused-state,naming-convention
uint256[50] private __gapChildERC20Bridge;
}
3 changes: 3 additions & 0 deletions src/root/RootAxelarBridgeAdaptor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,7 @@ contract RootAxelarBridgeAdaptor is
emit AdaptorExecute(sourceChain_, sourceAddress_, payload_);
rootBridge.onMessageReceive(sourceChain_, sourceAddress_, payload_);
}

// slither-disable-next-line unused-state,naming-convention
uint256[50] private __gapRootAxelarBridgeAdaptor;
}
3 changes: 3 additions & 0 deletions src/root/RootERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,7 @@ contract RootERC20Bridge is IRootERC20Bridge, IRootERC20BridgeEvents, IRootERC20
}
// slither-disable-next-line reentrancy-events
}

// slither-disable-next-line unused-state,naming-convention
uint256[50] private __gapRootERC20Bridge;
}
2 changes: 1 addition & 1 deletion src/root/flowrate/FlowRateDetection.sol
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@ abstract contract FlowRateDetection {
}

// slither-disable-next-line unused-state,naming-convention
uint256[50] private __gapFlowRateDetecton;
uint256[50] private __gapFlowRateDetection;
}
2 changes: 1 addition & 1 deletion src/root/flowrate/RootERC20BridgeFlowRate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,5 @@ contract RootERC20BridgeFlowRate is
}

// slither-disable-next-line unused-state,naming-convention
uint256[50] private __gapRootERC20PredicateFlowRate;
uint256[50] private __gapRootERC20BridgeFlowRate;
}

0 comments on commit 24df837

Please sign in to comment.