Skip to content

Commit 447a396

Browse files
committed
fix: deprecated struct field for earning receiver
1 parent c75eb8e commit 447a396

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

test/integration/CoreRegistration.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ contract Test_CoreRegistration is MockAVSDeployer {
102102
cheats.prank(operator);
103103
delegationManager.registerAsOperator(
104104
IDelegationManager.OperatorDetails({
105-
earningsReceiver: operator,
105+
__deprecated_earningsReceiver: operator,
106106
delegationApprover: address(0),
107107
stakerOptOutWindowBlocks: 0
108108
}),

test/integration/User.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ contract User is Test {
244244
_log("registerAsOperator (core)");
245245

246246
IDelegationManager.OperatorDetails memory details = IDelegationManager.OperatorDetails({
247-
earningsReceiver: address(this),
247+
__deprecated_earningsReceiver: address(this),
248248
delegationApprover: address(0),
249249
stakerOptOutWindowBlocks: 0
250250
});

test/mocks/DelegationMock.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ contract DelegationMock is IDelegationManager {
5858

5959
function operatorDetails(address operator) external pure returns (OperatorDetails memory) {
6060
OperatorDetails memory returnValue = OperatorDetails({
61-
earningsReceiver: operator,
61+
__deprecated_earningsReceiver: operator,
6262
delegationApprover: operator,
6363
stakerOptOutWindowBlocks: 0
6464
});
@@ -171,8 +171,6 @@ contract DelegationMock is IDelegationManager {
171171
bool[] calldata receiveAsTokens
172172
) external {}
173173

174-
function migrateQueuedWithdrawals(IStrategyManager.DeprecatedStruct_QueuedWithdrawal[] memory withdrawalsToQueue) external {}
175-
176174
// onlyDelegationManager functions in StrategyManager
177175
function addShares(
178176
IStrategyManager strategyManager,

0 commit comments

Comments
 (0)