Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
43 views

In solana anchor, how to use max_len macro to define multi-dimensional vector?

I'm using anchor to build solana program. In account struct, I have multi-dimensional vector. #[max_len(2,50)] element: Vec<Vec<MyType>>, In this case, what is the meaning of (2, 50)? I ...
toygr's user avatar
  • 190