dfinity / motoko-dev-server

A live reload development server for Motoko smart contracts.
Apache License 2.0
21 stars 1 forks source link

provide install arguments for canisters #48

Closed letmejustputthishere closed 1 year ago

letmejustputthishere commented 1 year ago

it seems like there is no way to provide install arguments for canisters, can this be added?

rvanasa commented 1 year ago

It's now possible to pass --argument (or -a) in mo-dev 0.11.0!

This is currently subject to the same limitations as directly running dfx deploy <canister> --argument <arg>, so it might be necessary to do a dfx start --clean to reset the original install args if needed. Let me know if you run into any issues with this, and I could see if there's a way to detect and fix these corner cases in the dev server logic.

letmejustputthishere commented 1 year ago

Awesome, thanks for the quick response!