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

Use ConstructorArgs trait for args on deploy with constructor #1349

Merged
merged 4 commits into from
Sep 28, 2024

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Sep 25, 2024

What

Use ConstructorArgs trait for args on deploy with constructor, and rename deploy with constructor to deploy_v2.

Why

So that types can be passed directly to the deploy function like they can now be passed to the register function since #1343.

I renamed the function to deploy_v2 for consistency with what we did when we added a second register for stellar asset contract function. I considered merging with the deploy function which would have been a breaking change, that I think we agreed would be worthwhile, but breaking is just such a bad experience and I think a _v2 is almost as good. We can consider merging the deploy functions at a later date.

Close #1347

@leighmcculloch leighmcculloch marked this pull request as ready for review September 25, 2024 07:48
@leighmcculloch leighmcculloch added this pull request to the merge queue Sep 28, 2024
Merged via the queue into main with commit 01f27c1 Sep 28, 2024
16 checks passed
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.

Merge the deploy and deploy_with_constructor env fns
2 participants