Skip to content

Commit

Permalink
feat: use static salt for deploy task
Browse files Browse the repository at this point in the history
This is so helpful when testing locally, but carries a little risk that
the code is easily front-runnable for ownership
  • Loading branch information
cpb8010 committed Dec 18, 2024
1 parent 0b7f4b3 commit 4422b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function deploy(name: string, deployer: Wallet, proxy: boolean, args?: any
console.log("Deploying", name, "contract...");
let implContract;
if (name == FACTORY_NAME) {
implContract = await deployFactory(deployer, args![0]);
implContract = await deployFactory(deployer, args![0], ethersStaticSalt);
} else {
implContract = await create2(name, deployer, ethersStaticSalt, args);
}
Expand Down

0 comments on commit 4422b11

Please sign in to comment.