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
Whenever using CLI to deploy a contract with an array of String in init args - e.g. init(_ a: [String]) - deployment succeeds but the init args as defined in the flow.json break the config file.
Problem
Whenever using CLI to deploy a contract with an array of
String
in init args - e.g.init(_ a: [String])
- deployment succeeds but the init args as defined in the flow.json break the config file.Steps to Reproduce
Init project:
Add the contract
Run emulator and deploy the contract with
flow accounts add-contract ./contracts/C.cdc '["a", "b"]'
Try to run any other CLI command and get
❌ Config Error: failed to decode JSON-Cadence value: invalid type: [String]
Looking at the flow.json, we see
Which should be
The text was updated successfully, but these errors were encountered: