flow-cli icon indicating copy to clipboard operation
flow-cli copied to clipboard

Deploying contract without name

Open devbugging opened this issue 4 years ago • 3 comments

Could we remove the name parameter when deploying a contract or at least make it optional since it must match the name of the contract from file which could just be read from the file itself.

devbugging avatar Apr 30 '21 13:04 devbugging

Implementation inspiration https://github.com/onflow/flow-playground-api/blob/a5e76a3228e70c9ccfd34b218d7ea91c10292af3/resolver.go#L223

devbugging avatar Aug 24 '22 12:08 devbugging

I think the commands to deploy contracts manually and not through flow project should just be removed, it is just confusing to have multiple ways to do it. Last I checked they do not resolve imports either.

bjartek avatar Sep 12 '22 06:09 bjartek

I think the commands to deploy contracts manually and not through flow project should just be removed, it is just confusing to have multiple ways to do it. Last I checked they do not resolve imports either.

I think deploy is a bit advanced use. With new contract import syntax ( https://github.com/onflow/flow-cli/issues/502 ) single deploy command, will make much more sense.

bluesign avatar Sep 12 '22 07:09 bluesign