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

Support calling ctors with tuples #1340

Merged
merged 6 commits into from
Sep 18, 2024
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Sep 18, 2024

What

Support calling ctors with tuples directly.

Why

This is a pattern we used with event publishing which also accepts tuples directly.

It allows a user to call:

env.register_contract_with_constructor(None, Contract, (a, b, c))

Instead of:

env.register_contract_with_constructor(None, Contract, (a, b, c).into_val(&env));

@leighmcculloch leighmcculloch marked this pull request as ready for review September 18, 2024 07:22
@leighmcculloch leighmcculloch added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit b75dd58 Sep 18, 2024
16 checks passed
@leighmcculloch leighmcculloch deleted the ctor-register-with-tuples branch September 18, 2024 21:18
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