Improve error messages when building payloads for functions that take Object<T>
#8735
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
hackathon-feedback
Issues that came from either something we noticed or from a participant during a hackathon
move
ops week
sdk
SDK related issues
stale-exempt
Prevents issues from being automatically marked and closed as stale
It is not obvious to new users what you're meant to do when an entry function takes
Object<MyThing>
as an argument. I have seen people try to do things like actually build an object in whatever native representation and/or serialize as BCS and pass that in (since they're new, they don't understand that it's really just a pointer).In our SDKs if you're building a payload for an entry function that takes
Object<T>
you can just pass in an address. Indeed this is the only thing that works. As such our payload builders should return a very clear error in this case, like this:The text was updated successfully, but these errors were encountered: