From b45dced95b5a8d672b8fed759b7b0b60fc339172 Mon Sep 17 00:00:00 2001 From: steven <12021290+stevennevins@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:09:59 -0400 Subject: [PATCH] fix: deprecated struct field for earning receiver (#265) --- test/integration/CoreRegistration.t.sol | 2 +- test/integration/User.t.sol | 2 +- test/mocks/DelegationMock.sol | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/integration/CoreRegistration.t.sol b/test/integration/CoreRegistration.t.sol index 3c0561f3..5998025c 100644 --- a/test/integration/CoreRegistration.t.sol +++ b/test/integration/CoreRegistration.t.sol @@ -102,7 +102,7 @@ contract Test_CoreRegistration is MockAVSDeployer { cheats.prank(operator); delegationManager.registerAsOperator( IDelegationManager.OperatorDetails({ - earningsReceiver: operator, + __deprecated_earningsReceiver: operator, delegationApprover: address(0), stakerOptOutWindowBlocks: 0 }), diff --git a/test/integration/User.t.sol b/test/integration/User.t.sol index fbb55198..2f89ab1a 100644 --- a/test/integration/User.t.sol +++ b/test/integration/User.t.sol @@ -244,7 +244,7 @@ contract User is Test { _log("registerAsOperator (core)"); IDelegationManager.OperatorDetails memory details = IDelegationManager.OperatorDetails({ - earningsReceiver: address(this), + __deprecated_earningsReceiver: address(this), delegationApprover: address(0), stakerOptOutWindowBlocks: 0 }); diff --git a/test/mocks/DelegationMock.sol b/test/mocks/DelegationMock.sol index 02cb4634..88cd9d20 100644 --- a/test/mocks/DelegationMock.sol +++ b/test/mocks/DelegationMock.sol @@ -58,7 +58,7 @@ contract DelegationMock is IDelegationManager { function operatorDetails(address operator) external pure returns (OperatorDetails memory) { OperatorDetails memory returnValue = OperatorDetails({ - earningsReceiver: operator, + __deprecated_earningsReceiver: operator, delegationApprover: operator, stakerOptOutWindowBlocks: 0 }); @@ -171,8 +171,6 @@ contract DelegationMock is IDelegationManager { bool[] calldata receiveAsTokens ) external {} - function migrateQueuedWithdrawals(IStrategyManager.DeprecatedStruct_QueuedWithdrawal[] memory withdrawalsToQueue) external {} - // onlyDelegationManager functions in StrategyManager function addShares( IStrategyManager strategyManager,