We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[derive(Debug, TryFromPrimitive, PartialEq, Eq, Clone, Copy)] #[repr(u16)] pub enum GlobalConfigOption { EmergencyMode = 0, ... // 100 ScopeProgramId = 100, ScopePriceId = 101, }
Codegen:
export interface ScopePriceIdJSON { kind: "ScopePriceId" } export class ScopePriceId { static readonly discriminator = 17 static readonly kind = "ScopePriceId" readonly discriminator = 17 readonly kind = "ScopePriceId" }
This should be 101, not 17..
The text was updated successfully, but these errors were encountered:
Anchor currently doesn't encode enum discriminants in the IDL so this is not possible.
Sorry, something went wrong.
No branches or pull requests
Codegen:
This should be 101, not 17..
The text was updated successfully, but these errors were encountered: