Skip to content

Commit

Permalink
Place address check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Ignacio Ubeira committed Dec 4, 2024
1 parent 38aa96c commit b30c58a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v3/tasks/20241204-v3-vault/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b30c58a

Please sign in to comment.