-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: overwriting existing pending modifications (#1052)
* test: regression tests showing invalid state * fix: require check and update tests
- Loading branch information
Showing
3 changed files
with
243 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.27; | ||
|
||
import "../../contracts/core/AllocationManager.sol"; | ||
|
||
contract AllocationManagerHarness is AllocationManager { | ||
using DoubleEndedQueue for DoubleEndedQueue.Bytes32Deque; | ||
|
||
constructor( | ||
IDelegationManager _delegation, | ||
IPauserRegistry _pauserRegistry, | ||
IPermissionController _permissionController, | ||
uint32 _DEALLOCATION_DELAY, | ||
uint32 _ALLOCATION_CONFIGURATION_DELAY | ||
) | ||
AllocationManager( | ||
_delegation, | ||
_pauserRegistry, | ||
_permissionController, | ||
_DEALLOCATION_DELAY, | ||
_ALLOCATION_CONFIGURATION_DELAY | ||
) | ||
{} | ||
|
||
function deallocationQueueAtIndex( | ||
address operator, | ||
IStrategy strategy, | ||
uint256 index | ||
) external view returns (bytes32) { | ||
return deallocationQueue[operator][strategy].at(index); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters