Getting unknown for Object and Option type
0xaptosj opened this issue · 5 comments
0xaptosj commented
For Object type
get_messages
returns a vector of objects with type being my_module_address::Message
, however the type inferred by surf is unknown[]
, I was expecting it to return {inner: string}[]
.
For Option type
get_message_content
returns all fields of the message, where it has a bunch of fields with Option
type. Surf also returns unknown
for those Option
types.
0xaptosj commented
@0xaptosj can you elaborate?
Yes, I will add more detail this week, i'm working a in depth tutorial on surf now and will have an update soon
0xaptosj commented
@0xbe1 @SamuelQZQ i updated the issue description. thanks for taking a look!