Skip to content

fix: correct isAuthorizedRaw return type from (int64,bool) to (bool) - #131

Closed
Yonkoo11 wants to merge 1 commit into
hiero-ledger:mainfrom
Yonkoo11:fix/isAuthorizedRaw-return-type
Closed

fix: correct isAuthorizedRaw return type from (int64,bool) to (bool)#131
Yonkoo11 wants to merge 1 commit into
hiero-ledger:mainfrom
Yonkoo11:fix/isAuthorizedRaw-return-type

Conversation

@Yonkoo11

Copy link
Copy Markdown

Fixes #126

The precompile for isAuthorizedRaw returns a bare BOOL (bool), not RESPONSE_CODE64_BOOL (int64, bool). This was verified against the consensus node across all IHRC632 functions — only isAuthorizedRaw had the mismatch (see issue #126 for the full comparison table).

This PR:

  • Changes the return type from (int64 responseCode, bool authorized) to (bool authorized)
  • Updates the NatSpec to explain why this function differs from isAuthorized
  • Also fixes EDCSAECDSA typo in the same doc comment

@Yonkoo11
Yonkoo11 requested review from a team as code owners July 25, 2026 23:20
@Yonkoo11
Yonkoo11 requested a review from andrewb1269 July 25, 2026 23:20
Signed-off-by: yonkoo11 <alexmustapha11@gmail.com>
@Yonkoo11
Yonkoo11 force-pushed the fix/isAuthorizedRaw-return-type branch from 0263823 to 3b36b7d Compare July 25, 2026 23:23
@Yonkoo11

Yonkoo11 commented Aug 2, 2026

Copy link
Copy Markdown
Author

Friendly follow-up: DCO and the available checks are green. This keeps the ABI aligned with the HIP-719 isAuthorizedRaw boolean return type; happy to adjust anything needed for review.

@ValentinVPK ValentinVPK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you for your contribution!

@natanasow

Copy link
Copy Markdown
Member

Closing in favour of #142.

@natanasow natanasow closed this Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IHRC632.isAuthorizedRaw declares (int64, bool) but the precompile returns bare (bool)

3 participants