You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running the deployment script to set up the factory contract using the command yarn hardhat deploy-zksync --script deployFactoryAccount.ts, an unexpected error occurred after the compilation step. It seems like the target argument for the contract deployment is null or undefined, leading to the error. This could be due to misconfiguration or missing required parameters in the deployFactoryAccount.ts script.
Steps to Reproduce
Run the command yarn hardhat deploy-zksync --script deployFactoryAccount.ts
Observe the above error.
Expected Behavior
The deployment of the factory contract with zkSync should proceed without error, correctly generating the factory contract address.
Environment
Operating System: [Your operating system]
Node.js Version: [Your Node.js version]
Hardhat Version: [Your Hardhat version]
Other relevant environment information: [Add any other relevant information]
Additional Information
Here is the complete error message:
yarn run v1.22.10
warning ../package.json: No license field
$ /Users/xxx/custom-spendlimit-tutorial/node_modules/.bin/hardhat deploy-zksync --script deployFactoryAccount.ts
AA factory address: undefined
An unexpected error occurred:
TypeError: invalid value for Contract target (argument="target", value=null, code=INVALID_ARGUMENT, version=6.11.1)
at makeError (/Users/xxx/custom-spendlimit-tutorial/node_modules/ethers/src.ts/utils/errors.ts:687:21)
at assert (/Users/xxx/custom-spendlimit-tutorial/node_modules/ethers/src.ts/utils/errors.ts:715:25)
at assertArgument (/Users/xxx/custom-spendlimit-tutorial/node_modules/ethers/src.ts/utils/errors.ts:727:5)
at new BaseContract (/Users/xxx/custom-spendlimit-tutorial/node_modules/ethers/src.ts/contract/contract.ts:686:23)
at new Contract (/Users/xxx/custom-spendlimit-tutorial/node_modules/ethers/src.ts/contract/contract.ts:1120:1)
at default_1 (/Users/xxx/custom-spendlimit-tutorial/deploy/deployFactoryAccount.ts:33:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ScriptManager._runScript (/Users/xxx/custom-spendlimit-tutorial/node_modules/@matterlabs/hardhat-zksync-deploy/src/script-manager.ts:78:9)
at async ScriptManager.callDeployScripts (/Users/xxx/custom-spendlimit-tutorial/node_modules/@matterlabs/hardhat-zksync-deploy/src/script-manager.ts:71:13)
at async SimpleTaskDefinition.zkSyncDeploy [as action] (/Users/xxx/custom-spendlimit-tutorial/node_modules/@matterlabs/hardhat-zksync-deploy/src/task-actions.ts:13:5) {
code: 'INVALID_ARGUMENT',
argument: 'target',
value: undefined,
shortMessage: 'invalid value for Contract target'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
Description
While running the deployment script to set up the factory contract using the command yarn hardhat deploy-zksync --script deployFactoryAccount.ts, an unexpected error occurred after the compilation step.
It seems like the target argument for the contract deployment is null or undefined, leading to the error. This could be due to misconfiguration or missing required parameters in the deployFactoryAccount.ts script.
Steps to Reproduce
Run the command yarn hardhat deploy-zksync --script deployFactoryAccount.ts
Observe the above error.
Expected Behavior
The deployment of the factory contract with zkSync should proceed without error, correctly generating the factory contract address.
Environment
Operating System: [Your operating system]
Node.js Version: [Your Node.js version]
Hardhat Version: [Your Hardhat version]
Other relevant environment information: [Add any other relevant information]
Additional Information
Here is the complete error message:
The text was updated successfully, but these errors were encountered: