This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
Closed
Description
Describe the bug
When user specifies initArgs
but does not specify initFunction
the error message intended by the code here does not show: https://github.com/near/near-cli/blob/master/commands/dev-deploy.js#L87-L98 . It appears the logic in this code is wrong.
To Reproduce
- Deploy and initialize the contract using
initArgs
but omittinginitFunction
, e.g.:
near deploy --accountId=mycontract01.testnet --wasmFile=res/ft_lockup.wasm --initArgs '{<add args here>}'
- Observe that no error message is created and initialization function is not called.
Expected behavior
Error message is displayed OR new
function is used by the default.