dao-xyz / borsh-ts

⚡️fast TypeScript implementation of Borsh serialization format
Apache License 2.0
37 stars 2 forks source link

Add validation for string type with vec field #8

Open marcus-pousette opened 1 year ago

marcus-pousette commented 1 year ago
@field({type: vec('string')})
string: string

Does not throw error during ser/der, but instead serializes the string into chars.

Expected behaviours: Error is thrown indicating unexpected mapping