Skip to content

fix: correct isAuthorizedRaw return type to (bool) - #142

Merged
natanasow merged 2 commits into
hiero-ledger:mainfrom
ValentinVPK:126-isAuthorizedRaw-to-return-only-bool
Aug 21, 2026
Merged

fix: correct isAuthorizedRaw return type to (bool)#142
natanasow merged 2 commits into
hiero-ledger:mainfrom
ValentinVPK:126-isAuthorizedRaw-to-return-only-bool

Conversation

@ValentinVPK

@ValentinVPK ValentinVPK commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Corrects the isAuthorizedRaw return type from (int64 responseCode, bool authorized) to (bool authorized) across the raw-precompile interfaces (IHRC632.sol and IHederaAccountService.sol), matching the actual precompile ABI — verified against the consensus node's own IHederaAccountService.sol, which declares isAuthorizedRaw(...) returns (bool response). Also updates the HAS README.md signature table and fixes the EDCSA → ECDSA NatSpec typo, while intentionally leaving the HederaAccountService.sol wrapper returning (int64, bool) since it synthesizes a responseCode from the low-level call's success and AliasAccountUtility plus the tests rely on that.

Fixes #126.

Signed-off-by: ValentinVPK <valentin.krumov@limechain.tech>
@ValentinVPK
ValentinVPK requested review from a team as code owners August 20, 2026 12:41
…urn-only-bool

Signed-off-by: ValentinVPK <valentin.krumov@limechain.tech>
@ValentinVPK ValentinVPK self-assigned this Aug 20, 2026
@ValentinVPK ValentinVPK added the enhancement New feature or request label Aug 20, 2026
@ValentinVPK ValentinVPK added this to the 0.2.0 milestone Aug 20, 2026
@ValentinVPK
ValentinVPK requested a review from natanasow August 20, 2026 12:44
@natanasow
natanasow merged commit 17ee050 into hiero-ledger:main Aug 21, 2026
36 of 41 checks passed
@ValentinVPK
ValentinVPK deleted the 126-isAuthorizedRaw-to-return-only-bool branch August 21, 2026 06:26
@swirlds-automation

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

enhancement New feature or request released

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