Skip to content

Commit 4eb8650

Browse files
committed
fmt
1 parent 05d31f2 commit 4eb8650

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

test/MigrationLocker.t.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,24 @@ contract MigrationLockerTest is Test {
7979
assertEq(locker.paused(), false);
8080
assertEq(locker.owner(), owner);
8181
}
82-
82+
8383
function testInitiateNewEpoch() public {
8484
// Get the current epoch
8585
uint256 initialEpoch = locker.epoch();
86-
86+
8787
// Advance the block
8888
vm.roll(block.number + 10);
89-
89+
9090
// Call initiateNewEpoch
9191
locker.initiateNewEpoch();
92-
92+
9393
// Verify epoch was incremented
9494
assertEq(locker.epoch(), initialEpoch + 1);
95-
95+
9696
// Verify the new epoch's start block was set correctly
9797
assertEq(locker.epochStartBlock(initialEpoch + 1), block.number);
9898
}
99-
99+
100100
function testOnlyOwnerCanInitiateNewEpoch() public {
101101
// Try to call initiateNewEpoch as non-owner
102102
vm.prank(user1);

test/MigrationRelease.t.sol

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -455,35 +455,35 @@ contract MigrationReleaseTest is Test {
455455
function testRecoverERC20Tokens() public {
456456
// Deploy a mock ERC20 token
457457
ERC20Mock mockToken = new ERC20Mock("Mock Token", "MOCK");
458-
458+
459459
// Mint tokens to the contract
460460
uint256 tokenAmount = 1000 ether;
461461
mockToken.mint(address(release), tokenAmount);
462-
462+
463463
// Verify initial balances
464464
assertEq(mockToken.balanceOf(address(release)), tokenAmount);
465465
assertEq(mockToken.balanceOf(user1), 0);
466-
466+
467467
// Recover tokens
468468
release.recoverFunds(address(mockToken), user1, tokenAmount);
469-
469+
470470
// Verify final balances
471471
assertEq(mockToken.balanceOf(address(release)), 0);
472472
assertEq(mockToken.balanceOf(user1), tokenAmount);
473473
}
474-
474+
475475
function testCannotRecoverInvalidERC20Amount() public {
476476
// Deploy a mock ERC20 token
477477
ERC20Mock mockToken = new ERC20Mock("Mock Token", "MOCK");
478-
478+
479479
// Mint tokens to the contract
480480
uint256 tokenAmount = 1000 ether;
481481
mockToken.mint(address(release), tokenAmount);
482-
482+
483483
// Try to recover more tokens than the contract has
484484
vm.expectRevert("Invalid amount");
485485
release.recoverFunds(address(mockToken), user1, tokenAmount + 1);
486-
486+
487487
// Try to recover zero tokens
488488
vm.expectRevert("Invalid amount");
489489
release.recoverFunds(address(mockToken), user1, 0);

0 commit comments

Comments
 (0)