diff --git a/.gas-snapshot b/.gas-snapshot index 892cf94..9ac2ead 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -72,7 +72,8 @@ testSetDefaultHarvestWindow() (gas: 65482) testDefaultHarvestWindowOverridesCustomOfZero() (gas: 67656) testSetCustomTargetFloatPercent() (gas: 53993) testSetDefaultHarvestDelay() (gas: 55816) -testFailNoDuplicateVaults() (gas: 272747603292618) +testIsVaultDeployed() (gas: 3690) +testFailNoDuplicateVaults() (gas: 272747603292619) testDeployVault() (gas: 4154358) testVaultCreation() (gas: 4309323) testSetConfigurationModule() (gas: 3471) diff --git a/src/test/VaultFactory.t.sol b/src/test/VaultFactory.t.sol index dd54c9c..ce0f690 100644 --- a/src/test/VaultFactory.t.sol +++ b/src/test/VaultFactory.t.sol @@ -31,4 +31,8 @@ contract VaultFactoryTest is DSTestPlus { vaultFactory.deployVault(underlying); vaultFactory.deployVault(underlying); } + + function testIsVaultDeployed() public { + assertFalse(vaultFactory.isVaultDeployed(Vault(payable(address(0xBEEF))))); + } }