File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 6262 --report debug
6363 --optimize
6464 --optimizer-runs 200
65+ <<<<<<< HEAD
6566 --no-auto-detect
6667 --skip script/DeployUpgradableLuminoProtocol.s.sol
68+ =======
69+ --no-auto-detect
70+ >>>>>>> dbdfca23eee90356ceca6988d8ed8bf75f7bf156
6771 id : coverage
6872
6973 # - name: Upload coverage to Codecov
Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ contract StakeManagerTest is Test, Constants {
2323 staker1 = address (0x1 );
2424 staker2 = address (0x2 );
2525
26- // Deploy contracts
27- stakeManager = new StakeManager ();
26+ // Deploy JobManager first
2827 jobsManager = new JobsManager ();
29-
30- // Initialize contracts
28+ jobsManager.initialize (5 , address (0 )); // Initialize with a dummy jobs manager address first
29+
30+ stakeManager = new StakeManager ();
3131 stakeManager.initialize (address (jobsManager));
32- jobsManager.initialize (5 , address (stakeManager));
3332
3433 // Fund test accounts
3534 vm.deal (staker1, 100 ether);
3635 vm.deal (staker2, 100 ether);
3736 }
3837
3938 function testInitialization () public view {
39+ assertEq (stakeManager.numStakers (), 0 );
4040 assertTrue (stakeManager.hasRole (stakeManager.DEFAULT_ADMIN_ROLE (), admin));
4141 assertEq (stakeManager.numStakers (), 0 );
4242 }
You can’t perform that action at this time.
0 commit comments