Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deprecated struct field for earning receiver #265

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/integration/CoreRegistration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
Expand Down
2 changes: 1 addition & 1 deletion test/integration/User.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down
4 changes: 1 addition & 3 deletions test/mocks/DelegationMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down Expand Up @@ -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,
Expand Down
Loading