Skip to content

Commit

Permalink
corrections to storage slot 8
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarMax committed Jul 29, 2024
1 parent 15351bc commit c55fe77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/kontrol/StorageSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,14 @@ contract StorageSetup is KontrolTest {
} else {
_storeUInt256(address(_escrow), 5, 0);
}
// Slot 8
if (_currentState == EscrowState.RageQuitEscrow) {
uint256 batchesQueueLength = uint256(kevm.freshUInt(32));
vm.assume(batchesQueueLength < 2 ** 64);
_storeUInt256(address(_escrow), 8, batchesQueueLength);
} else {
_storeUInt256(address(_escrow), 8, 0);
}
// Slot 9
// FIXME: This branching is done to avoid the fresh existential generation bug
if (_currentState == EscrowState.RageQuitEscrow) {
Expand Down

0 comments on commit c55fe77

Please sign in to comment.