Skip to content

Enum not using integer value #110

@SC4RECOIN

Description

@SC4RECOIN
pub enum UpdateConfigMode {
    UpdateLoanToValuePct = 1,
    UpdateMaxLiquidationBonusBps = 2,
    UpdateLiquidationThresholdPct = 3,
}

gets converted to

export enum UpdateConfigMode {
  UpdateLoanToValuePct,
  UpdateMaxLiquidationBonusBps,
  UpdateLiquidationThresholdPct,
}

which is 0 based

this can be fixed by updating the rust enum to start from 0 or solita can be updated to generate the appropriate enum values

export enum UpdateConfigMode {
  UpdateLoanToValuePct = 1,
  UpdateMaxLiquidationBonusBps,
  UpdateLiquidationThresholdPct,
}

this is minor so feel free to close if not a priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions