From b30c58a748ecd25b5b925e1f70694c3871662342 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Ubeira Date: Wed, 4 Dec 2024 18:41:16 -0300 Subject: [PATCH] Place address check. --- v3/tasks/20241204-v3-vault/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v3/tasks/20241204-v3-vault/index.ts b/v3/tasks/20241204-v3-vault/index.ts index ddfff1a0..c9d3ad2d 100644 --- a/v3/tasks/20241204-v3-vault/index.ts +++ b/v3/tasks/20241204-v3-vault/index.ts @@ -21,9 +21,9 @@ export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise const vaultAddress = await vaultFactory.getDeploymentAddress(input.salt); - // if (vaultAddress !== input.targetVaultAddress) { - // throw Error('Incorrect target address'); - // } + if (vaultAddress !== input.targetVaultAddress) { + throw Error('Incorrect target address'); + } // Skip deployment if it's already done if ((await vaultFactory.isDeployed(vaultAddress)) === false) {