dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
174 stars 83 forks source link

Parse candid argument early #2397

Open nmattia opened 2 years ago

nmattia commented 2 years ago

I've noticed that the --argument is not parsed when invoked, but only later one when used. Here's an example:

dfx deploy --no-wallet --argument 'version_info = "hello"'

Doing this, my canister will be built (~2mn) before I get a parse error. It would be great to fail early.

sesi200 commented 2 years ago

Tracked in SDK-648