Starter repo - https://github.com/superdevs-org/week-1-basic-borsh
Continuing from the last assignment
Can you support strings as well? What might be the problem in storing a string.
#[derive(SerializeNumberStruct, DeserializeNumberStruct)]
struct Swap {
qty_2: usize,
qty_3: i8,
name: String,
}
<aside> 💡
Use borsh like serialization for strings (bunch of bytes store the length of the string, followed by the actual string)
</aside>
Solve it here - https://github.com/superdevs-org/week-1-assignment-2