Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skipIfAlreadyDeployed doesn't work for false conditions #13

Open
lucasarchangelo opened this issue Aug 12, 2023 · 1 comment
Open

skipIfAlreadyDeployed doesn't work for false conditions #13

lucasarchangelo opened this issue Aug 12, 2023 · 1 comment

Comments

@lucasarchangelo
Copy link

When I try to use this property on deploy method setting this as false, the plugin doesn't override the deployed contract, I have to delete the network folder and just after that I can override the address for a new one.

await deploy('ContracExample', {
	from: deployer.address,
	args: [fujiLinkAddress, fujiRouterAddress],
	log: true,
	autoMine: true,
	skipIfAlreadyDeployed: false,
});
@wighawag
Copy link
Owner

skipIfAlreadyDeployed is "false" by default

What happens then is hardhat-deploy will only redeploy a contract if its code changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants