From f38777520b233039e2d52f496767180fefcb8583 Mon Sep 17 00:00:00 2001 From: benesjan Date: Wed, 20 Sep 2023 10:24:22 +0000 Subject: [PATCH] WIP --- yarn-project/aztec.js/src/contract_deployer/deploy_method.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts b/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts index 2f073fd01d81..e6d378ed905f 100644 --- a/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts +++ b/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts @@ -132,7 +132,7 @@ export class DeployMethod extends Bas */ public setContractAddressSalt(salt?: Fr) { if (this.contractAddressSalt) { - if (salt) { + if (salt && !this.contractAddressSalt.equals(salt)) { throw new Error( `Contract address salt is already set. Current value: ${this.contractAddressSalt}, new value: ${salt}`, );