From 0d57d65750719998b2b328c054bd5c55ba22b397 Mon Sep 17 00:00:00 2001 From: t11s Date: Sat, 11 Dec 2021 11:51:46 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20isVaultDeployed=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gas-snapshot | 3 ++- src/test/VaultFactory.t.sol | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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))))); + } }