-
Notifications
You must be signed in to change notification settings - Fork 135
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
Option type missing from docs #485
Comments
How is the status on this Issue? We have had some updates since it was opened and I'm thinking that things may have changed or it this issue has been resolved. I would appreciate an update when you get a chance Thanks! |
stellar/stellar-xdr#70 completely overhauled the scval system since this issue was written. There are two ways In the ContractSpec (what you get if you do a In the actual invocation xdr, there is no explicit Option type. Instead there is an ScVoid value, which you can pass for any value that should be We should probably think of a good way to explain this to people. Good luck 🤷 |
Should add to this page too: https://developers.stellar.org/docs/tools/sdks/build-your-own |
It is not clear how to represent a Rust
Option
type in XDR. The custom-types documentation does not include any information about Option types.Also, it would be helpful to have more tooling or at least a link to a reference implementation which converts Soroban types into their corresponding XDR structures. Otherwise, you are left guessing at how values should be encoded as SCVals.
The text was updated successfully, but these errors were encountered: