Open jacksondoherty opened 2 days ago
Hey, thank you for creating this issue!
#[max_len]
only applies to the InitSpace
macro, which is pretty much exclusively used for initializing accounts. It's not being used after the account is created, and changing that behavior risks breaking people's existing logic. Thus, I'm not in favor of this feature at this time. However, we might be able to add a new macro/impl that achieves what you described instead.
Ex. This will not throw an error if
name
is longer than 32 chars.