You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can add a contract with flow accounts add-contract ./HelloWorld.cdc --network emulator --signer test-acct, but if I go to run a script against it with flow scripts execute script.cdc --network emulator I will get the following error:
Command Error: import HelloWorld could not be resolved from provided contracts
If I add a deployments section it goes away. Note: this only happens with the new import syntax of import "HelloWorld"
Technically it should work without the deployments section since the contract is already deployed.
The text was updated successfully, but these errors were encountered:
I belive add-contract was added before there was flow deploy is this this really an command we need?
from looking at the code it does not look like it is added to flow.json at all. The AddContract method in Flowkit adds the contract if it is not present but it does not add a Deployment seciont.
I can see use cases for wanting to deploy individual projects vs the entire project with flow deploy. I'd vote for keeping it. But yeah if there are issue we should solve them...which it looks like you just PR'd. Thanks for doing that. Will take a look.
You can add a contract with
flow accounts add-contract ./HelloWorld.cdc --network emulator --signer test-acct
, but if I go to run a script against it withflow scripts execute script.cdc --network emulator
I will get the following error:Command Error: import HelloWorld could not be resolved from provided contracts
If I add a deployments section it goes away. Note: this only happens with the new import syntax of
import "HelloWorld"
Technically it should work without the deployments section since the contract is already deployed.
The text was updated successfully, but these errors were encountered: