Skip to content

fix(classes): normalize MinerEvaluation github_id to str to prevent dict key mismatch#1419

Open
messiawrq-design wants to merge 1 commit into
entrius:mainfrom
messiawrq-design:fix/github-id-type-mismatch
Open

fix(classes): normalize MinerEvaluation github_id to str to prevent dict key mismatch#1419
messiawrq-design wants to merge 1 commit into
entrius:mainfrom
messiawrq-design:fix/github-id-type-mismatch

Conversation

@messiawrq-design
Copy link
Copy Markdown

Description

This PR addresses the issue raised in #1413 where a mismatch between int and str types for github_id causes identity splitting, duplicate false positives, or denied bounty payouts during dictionary key lookups.

Changes Made:

  • Added a __post_init__ hook to the MinerEvaluation dataclass.
  • Ensured that if a github_id is passed as an int, it is immediately cast to a str during initialization. This guarantees type consistency (str) across all validation and scoring pipelines, solving the dict key mismatch.

Related Issues

Closes #1413


Payout Address (Solana): 6sF8p22Gg83NKTJ6dvya7Srv4USCniZnP47DwQwK7Mtp

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant