diff --git a/src/CustomCollector.sol b/src/CustomCollector.sol index 6f24147..7a24851 100644 --- a/src/CustomCollector.sol +++ b/src/CustomCollector.sol @@ -19,8 +19,8 @@ contract CollectorWithCustomImplZkSync is Collector { /// @inheritdoc ICollector function initialize(uint256) external virtual override initializer { assembly { - sstore(53, 100000) // this slot was _fundsAdmin, but is now _nextStreamId - sstore(54, 0) // this slot was _nextStreamId, but is now _streams + sstore(51, 0) // this slot was _status, but is now part of the gap + sstore(52, 1) // this slot was the funds admin, but is now _status } } } diff --git a/src/CustomCollectorZkSync.sol b/src/CustomCollectorZkSync.sol index 021d14a..5e18d31 100644 --- a/src/CustomCollectorZkSync.sol +++ b/src/CustomCollectorZkSync.sol @@ -19,8 +19,8 @@ contract CollectorWithCustomImpl is Collector { /// @inheritdoc ICollector function initialize(uint256) external virtual override initializer { assembly { - sstore(51, 0) // this slot was _status, but is now part of the gap - sstore(52, 1) // this slot was the funds admin, but is now "status" + sstore(53, 100000) // this slot was _fundsAdmin, but is now _nextStreamId + sstore(54, 0) // this slot was _nextStreamId, but is now _streams } } }