Skip to content

Commit

Permalink
fix: vault setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Oct 12, 2023
1 parent 9e2ec3f commit 4c2c2e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/test/CommonTrigger.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,6 @@ contract CommonTriggerTest is Setup {
// Deploy a vault.
vault = setUpVault();

vm.prank(management);
// Give the vault manager all the roles
vault.add_role(vaultManagement, 16383);

vm.prank(vaultManagement);
vault.set_deposit_limit(type(uint256).max);

bytes memory _calldata = abi.encodeWithSelector(
vault.process_report.selector,
address(mockStrategy)
Expand Down
8 changes: 8 additions & 0 deletions src/test/utils/Setup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ contract Setup is ExtendedTest {
)
);

vm.prank(management);
// Give the vault manager all the roles
vault.add_role(vaultManagement, 16383);

vm.prank(vaultManagement);
vault.set_deposit_limit(type(uint256).max);


return _vault;
}

Expand Down

0 comments on commit 4c2c2e2

Please sign in to comment.