Skip to content

Commit

Permalink
fix: deprecate storage variables
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Oct 1, 2024
1 parent 24129d1 commit cf03335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/horizon/contracts/staking/HorizonStakingStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ abstract contract HorizonStakingV1Storage {

/// @dev Address of the counterpart Staking contract on L1/L2
/// Used for the transfer tools.
address internal _counterpartStakingAddress;
/// Deprecated, transfer tools no longer enabled.
address internal __DEPRECATED_counterpartStakingAddress;

/// @dev Address of the StakingExtension implementation
/// This is now an immutable variable to save some gas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1822,11 +1822,6 @@ abstract contract HorizonStakingSharedTest is GraphBaseTest {
return delegation;
}

function _getStorage_CounterpartStakingAddress() internal view returns (address) {
uint256 slot = 24;
return address(uint160(uint256(vm.load(address(staking), bytes32(slot)))));
}

function _setStorage_allocation(
IHorizonStakingExtension.Allocation memory allocation,
address allocationId,
Expand Down

0 comments on commit cf03335

Please sign in to comment.