Skip to content

[DOCS] Fix the six broken code samples the compile sweep found - #104

Open
haimbj1 wants to merge 5 commits into
mainfrom
docs/broken-sample-fixes
Open

haimbj1 wants to merge 5 commits into
mainfrom
docs/broken-sample-fixes

Conversation

@haimbj1

@haimbj1 haimbj1 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

A full-site run of the new sample compiler (PR #102) flagged 54 blocks. Triage against the package sources classified 48 as harness limitations and 6 as real bugs. This fixes the 6:

  • writing-decrypt-result: FHE.publishDecryptResult has no bytes32 overload; wrap the handle.
  • trivial-encryption: missing proof argument, ebool assigned to euint16, missing function visibility.
  • conditions: a variable named 'final', a reserved keyword.
  • fherc20 best-practices (2 blocks) + operators (1 block): TypeScript client code sat in solidity fences; relabeled.

Every fixed Solidity block now compiles against @fhenixprotocol/cofhe-contracts 0.2.0.

@mintlify

mintlify Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fhenix 🟢 Ready View Preview Sep 28, 2026, 3:27 PM

This branch was successfully deployed

1 active deployment
staging — 77c8cb19 Deployed Sep 28, 2026 by mintlify[bot]
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.

1 participant