Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract deployment args fix #42

Merged
merged 4 commits into from
May 3, 2024
Merged

Contract deployment args fix #42

merged 4 commits into from
May 3, 2024

Conversation

jribbink
Copy link
Contributor

@jribbink jribbink commented May 3, 2024

solves onflow/flow-cli#1352 & onflow/flow-cli#1427

Mostly a backport of the changes made in 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 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

Copy link
Contributor

@ianthpun ianthpun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks for fixing this!

@jribbink jribbink requested a review from ianthpun May 3, 2024 14:25
@jribbink jribbink merged commit 200347d into main May 3, 2024
2 checks passed
@jribbink jribbink deleted the jribbink/backport-init-args branch May 3, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants