codama-idl / codama

Generate clients, CLIs, documentation and more from your Solana programs
MIT License
73 stars 16 forks source link

Rust renderer generates invalid code for newer borsh versions #207

Open 4lve opened 1 month ago

4lve commented 1 month ago

The try_to_vec method was removed in borsh v1.0

Replace x.try_to_vec().unwrap(); with to_vec(&x).unwrap();