Closed austbot closed 2 years ago
Use an ENUM onchain and use solita to generate an SDK. If you pass the enum value into the instruction method it will deserialize it with an incorrect index that is +n of the enum members due to how js represents ts enums.
Reproduction
Use an ENUM onchain and use solita to generate an SDK. If you pass the enum value into the instruction method it will deserialize it with an incorrect index that is +n of the enum members due to how js represents ts enums.