bug: lz:deploy
requires deploy task name matches contractName
#1066
Labels
bug
Something isn't working
lz:deploy
requires deploy task name matches contractName
#1066
Title: bug:
lz:deploy
requires deploy task name matchescontractName
Describe the bug
When running
npx hardhat lz:deploy
, if thecontractName
and deploy script do not match, the deployment process indicates success without generating a deployment file or submitting the contract on the blockchain.To Reproduce
Steps to reproduce the behavior:
contractName
and deploy script when prompted.Expected behavior
The deployment process should either:
Fail with an error message indicating that the
contractName
and deploy script do not match, preventing a misleading success notification.OR
Automatically handle the mismatch by either adjusting internally or prompting the user to correct the mismatch before proceeding.
Additionally, a deployment file should be generated, and the contract should be correctly submitted on the blockchain.
Screenshots
Example of misleading success message:
Environment (please complete the following information):
Additional context
This issue can lead to confusion and potential deployment issues, as developers might believe their contracts are deployed successfully while no actual deployment has occurred. Ensuring that
contractName
and deploy script names are synchronized is crucial for the reliability of the deployment process.The text was updated successfully, but these errors were encountered: