stellar / rs-soroban-sdk

Rust SDK for Soroban contracts.
Apache License 2.0
128 stars 67 forks source link

Support calling ctors with tuples #1340

Closed leighmcculloch closed 2 months ago

leighmcculloch commented 2 months ago

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));