-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: explicitly define roles in staker deploy script
- Loading branch information
1 parent
9eec56b
commit e12dc92
Showing
2 changed files
with
40 additions
and
2 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,24 @@ | ||
/// SPDX: License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
// Test utils | ||
import "forge-std/Test.sol"; | ||
|
||
// Deploy script | ||
import "script/DeployStaker.s.sol"; | ||
|
||
contract DeployStakerTest is Test { | ||
string RPC_ETH_MAINNET = vm.envString("RPC_MAINNET"); | ||
uint256 FORK_ID; | ||
DeployStakerScript deploy; | ||
|
||
function setUp() public virtual { | ||
FORK_ID = vm.createSelectFork(RPC_ETH_MAINNET); | ||
deploy = new DeployStakerScript(); | ||
} | ||
|
||
function testDeployStaker() public virtual { | ||
vm.selectFork(FORK_ID); | ||
deploy.run(); | ||
} | ||
} |