Closed thlorenz closed 2 years ago
Adds support to declare an account field as padding.
#[derive(ShankAccount)] pub struct StructAccountWithPadding { count: u8, #[padding] _padding: [u8; 3], }
This attribute is included in the Account IDL attrs as "padding".
attrs
"padding"
This required changes to:
shank-macro
ShankAccount
shank-macro-impl
shank-idl
Solita is updated in this PR to adapt the rendered code for Accounts with padding.
Fixes: #17
Summary
Adds support to declare an account field as padding.
This attribute is included in the Account IDL
attrs
as"padding"
.Details
This required changes to:
shank-macro
to add the attr toShankAccount
deriveshank-macro-impl
in order to parse the new attribute.shank-idl
in order to include the attribute in the IDL of accountsRelated Work
Solita is updated in this PR to adapt the rendered code for Accounts with padding.
Fixes: #17