Forced changes that were necessary to update to latest Cadence version unintentionally fixed this issue
That being said, it uses the Prepare function instead of marshalling and unmarshalling as a hack to convert structs to map[string]any which is a better/simpler way to fix this. Because the JSON values from Cadence are structs, we cannot conform to map[string]any, so I relaxed the deployment arg type to any
solves https://github.com/onflow/flow-cli/issues/1352 & https://github.com/onflow/flow-cli/issues/1427
Mostly a backport of the changes made in https://github.com/onflow/flowkit/compare/dc655f4...a1765cd on the
stable-cadence
branch.Forced changes that were necessary to update to latest Cadence version unintentionally fixed this issue
That being said, it uses the
Prepare
function instead of marshalling and unmarshalling as a hack to convert structs tomap[string]any
which is a better/simpler way to fix this. Because the JSON values from Cadence are structs, we cannot conform tomap[string]any
, so I relaxed the deployment arg type toany