All Questions
Tagged with anchor-accounts anchor-program
1 question
1
vote
1
answer
84
views
Defining composite fields using Anchor Accounts structs from other crates
Consider an anchor workspace set up like so:
programs/a/lib.rs
programs/b/lib.rs
programs/c/lib.rs
common/lib.rs
With accounts struct in the common crate:
// common/lib.rs
#[derive(Accounts)]
pub ...