Currently when defining a tuple struct in an external program such as struct T(pub u32), declare_program! will transform this into struct T(u32). This effectively means initializing T in the program importing it isn't possible. This also differs from how normal structs work where each field is automatically made public. This PR changes this for tuple structs and makes each field of the tuple public too.
Currently when defining a tuple struct in an external program such as
struct T(pub u32)
,declare_program!
will transform this intostruct T(u32)
. This effectively means initializingT
in the program importing it isn't possible. This also differs from how normal structs work where each field is automatically made public. This PR changes this for tuple structs and makes each field of the tuple public too.