wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.19k stars 292 forks source link

Can't deploy the same contract twice. #405

Closed ZhangBrain closed 1 year ago

ZhangBrain commented 1 year ago

Describe the bug The same contract is deployed twice, the parameters passed in are different, and the deployed address is the same.

Expected behavior A clear and concise description of what you expected to happen. I expected to be able to control whether to redeploy the contract through the alias. The files listed in the deployments directory should preferably be prefixed with an alias, otherwise a contract will be overwritten if deployed multiple times.

versions

ZhangBrain commented 1 year ago

I've already asked this question before, https://github.com/wighawag/hardhat-deploy/issues/185, and found the answer.