near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 93 forks source link

943 initFunction and initArgs logic is wrong #944

Closed willemneal closed 2 years ago

willemneal commented 2 years ago

Use "new" if --initArgs is provided but --initFunction is not. fixes #943

@nearmax @volovyk-s

kalloc commented 2 years ago

@volovyk-s Hi, but what about contract re-deploy/upgrade? I understand that initFunction for migration not always required.

volovyks commented 2 years ago

@kalloc yes, new as default caused some bugs. Addressed in https://github.com/near/near-cli/pull/969