Why borsh schema for Movie has different order of fields in serialize/deserialize #11
Open
Description
Trying to understand, not explained anywhere, why the fields order is different in serialize and deserialize methods in movie model?
...
static borshSchema: borsh.Layout<Movie> = borsh.struct([
borsh.u8("variant"),
borsh.str("title"),
borsh.u8("rating"),
borsh.str("description"),
]);
static borshAccountSchema: borsh.Layout<Movie> = borsh.struct([
borsh.u8("initialized"),
borsh.u8("rating"),
borsh.str("title"),
borsh.str("description"),
]);
...
Metadata
Assignees
Labels
No labels