Skip to content

Unrecognized on-chain ticket status silently defaults to Valid #15

Description

@presidojay1

decodeStatus() logs a warning but falls back to returning 'Valid' when it can't recognize the on-chain status tag. Since the decoded value gets persisted straight into the DB status column, a decoding failure (e.g. an SDK/contract version mismatch) would incorrectly mark a ticket as valid for gate entry instead of failing safe.

Suggested fix: Throw an error instead of defaulting to 'Valid' when the tag is unrecognized, so callers handle the failure explicitly rather than silently trusting an unknown status.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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