Skip to content

Commit

Permalink
factory 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhea committed Apr 18, 2024
1 parent abd8f92 commit fd4965e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/integrations/factory/HyperdriveFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2716,6 +2716,32 @@ contract HyperdriveFactoryBaseTest is HyperdriveTest {

return hyperdrive;
}

function test_deployTargetInvalidDeployerCoordinator(
address deployer,
address pool
) external returns (IHyperdrive) {
deal(address(dai), deployer, CONTRIBUTION);

vm.startPrank(deployer);

dai.approve(address(deployerCoordinator), CONTRIBUTION);

deploymentId = keccak256(abi.encode(deploymentId));
salt = keccak256(abi.encode(salt));
config.vaultSharesToken = IERC20(pool);
vm.expectRevert(IHyperdriveFactory.InvalidDeployerCoordinator.selector);
factory.deployTarget(
deploymentId,
address(0),
config,
new bytes(0),
APR,
APR,
0,
salt
);
}
}

contract ERC4626FactoryMultiDeployTest is HyperdriveFactoryBaseTest {
Expand Down

0 comments on commit fd4965e

Please sign in to comment.