-
Notifications
You must be signed in to change notification settings - Fork 9
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
Contribution: missing Object
content getters
#72
Comments
What would your thoughts be on having the |
Sure, no immediate problem with it. I just usually err on the side of exposing the least possible or the types that I think are most stable. But to be fair I guess |
I realize now that I was only looking at the source on docs.rs and missed the fact that a lot of private fields now have getters (added in 6969208). So I guess this contrib makes less sense now. I still think
Also the comment above still stands |
Hi folks. I've noticed that
sui_sdk_types::types::Object
is missing any way of accessing its inner package/struct contents.Personally, I'm mostly interested in the BCS bytes of the inner
MoveStruct
. I see that its other attributes are unnecessary from the user's POV, since we already have theObject::version
andObject::object_type
methods.Therefore I'd like to contribute with a new method to
Object
:Naming up for discussion ofc :)
Notice I included the struct tag in the return, otherwise callers run into scenarios like:
The text was updated successfully, but these errors were encountered: