With:
#[derive(BorshDeserialize)]
struct MyEmptyStruct {}
shank runs fine, but the resulting idl contains
{
"name": "MyEmptyStruct",
"type": {
"kind": "struct",
"fields": []
}
}
causing solita to crash with
AssertionError [ERR_ASSERTION]: Rendering struct for MyEmptyStruct should have at least 1 field
On the other hand, with:
#[derive(BorshDeserialize)]
struct MyEmptyStruct;
shank crashes with
failed to parse fields make sure they are all named
Which is fine if shank/solita doesn't intend to support zero-sized structs but it attempts to do every single struct that impl BorshSerialize even if its not pub or part of the solana program instruction interface.
With:
shank runs fine, but the resulting idl contains
causing solita to crash with
On the other hand, with:
shank crashes with
Which is fine if shank/solita doesn't intend to support zero-sized structs but it attempts to do every single struct that
impl BorshSerializeeven if its notpubor part of the solana program instruction interface.