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

Add ref Option conversion into ScVal #320

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 11, 2023

What

Add ref Option conversion into ScVal.

Why

It's needed for supporting Option as a contracttype in SDKs, because all types that live in contracttypes must be convertible to ScVal via their ref form.

Close stellar/rs-soroban-env#444
Close stellar/rs-soroban-sdk#877

@leighmcculloch leighmcculloch marked this pull request as ready for review November 11, 2023 04:57
@leighmcculloch leighmcculloch added this pull request to the merge queue Nov 13, 2023
Merged via the queue into main with commit db3dffa Nov 13, 2023
@leighmcculloch leighmcculloch deleted the add-ref-option-conversion branch November 13, 2023 21:37
github-merge-queue bot pushed a commit to stellar/rs-soroban-env that referenced this pull request Nov 14, 2023
### What
Update stellar-xdr.

### Why
To get changes in stellar-xdr that fix Option<T> <> ScVal for:
- Close stellar/rs-soroban-sdk#877
- Close #444

Dependent on:
- stellar/rs-stellar-xdr#320
github-merge-queue bot pushed a commit to stellar/rs-soroban-sdk that referenced this pull request Nov 14, 2023
### What
Try to make Option<T> work with contracttype

### Why
Close stellar/rs-soroban-env#444
Close #877

Dependent on:
- stellar/rs-stellar-xdr#320
- stellar/rs-soroban-env#1198
github-merge-queue bot pushed a commit to stellar/rs-soroban-sdk that referenced this pull request Nov 14, 2023
### What
Try to make Option<T> work with contracttype

### Why
Close stellar/rs-soroban-env#444
Close #877

Dependent on:
- stellar/rs-stellar-xdr#320
- stellar/rs-soroban-env#1198
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.

Support Option in contracttype Allow use of Option in contracttype
2 participants