saber-hq / anchor-gen

Generates an Anchor CPI crate from a JSON IDL.
https://crates.io/crates/anchor-gen
Apache License 2.0
94 stars 56 forks source link

rust enums defined types are incorrect #40

Open Arrowana opened 1 year ago

Arrowana commented 1 year ago

Rust enums are correct only for variants without any fields (named or not).

qiluge commented 2 weeks ago

very strange error, cannot deserialize the data serialized by the same Instruction

image