| 10 | // define callback struct |
| 11 | #[derive(AnchorSerialize, AnchorDeserialize, Clone, Debug)] |
| 12 | pub struct Callback { |
| 13 | pub program_id: Pubkey, |
| 14 | pub additional_accounts: Vec<bool>, |
| 15 | pub ix_data: Option<u8>, |
| 16 | // only for Anchor programs |
| 17 | pub ix_name: Option<String>, |
| 18 | } |
| 19 | |
| 20 | #[zero_copy] |
| 21 | #[repr(packed)] |
nothing calls this directly
no outgoing calls
no test coverage detected