Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Sep 20, 2023
1 parent 43da6c0 commit f387775
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class DeployMethod<TContract extends ContractBase = Contract> 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}`,
);
Expand Down

0 comments on commit f387775

Please sign in to comment.