Skip to content

[FIX] CI compiles against local cofhe-contracts source#60

Merged
liorbond merged 4 commits intomasterfrom
fix/ci-compile-local-contracts
Mar 25, 2026
Merged

[FIX] CI compiles against local cofhe-contracts source#60
liorbond merged 4 commits intomasterfrom
fix/ci-compile-local-contracts

Conversation

@roeezolantz
Copy link
Copy Markdown
Contributor

Summary

  • Switch @fhenixprotocol/cofhe-contracts dependency from npm 0.0.13 to file:../../ so CI compiles the current FHE.sol, not a stale published version
  • Remove euint256 references from OnChain2.sol (type no longer exists in current FHE.sol)

This PR is expected to fail CI — it exposes the asEuint8(0) ambiguity bug introduced in #58. A follow-up commit will fix FHE.sol.

Test plan

  • Verify CI compilation fails with the expected No unique declaration found after argument-dependent lookup error
  • Follow-up: fix asEuint8(0) ambiguity in FHE.sol and confirm CI passes

Switch @fhenixprotocol/cofhe-contracts dependency from npm 0.0.13 to
file:../../ so CI catches compilation errors in FHE.sol before publish.
Remove euint256 references from OnChain2.sol (type no longer exists).
@roeezolantz roeezolantz requested a review from a team as a code owner March 25, 2026 14:12
Cast bare 0 literals to uint256 in all asEuintX(0) calls to resolve
ambiguity with the new bytes32 overloads. Update test contracts to
match current FHE.sol API (remove decrypt, fix return types).
Resolve overload ambiguity for asEuintX(0) calls by renaming the
bytes32 handle overloads to wrapE* — semantically distinct from
plaintext encryption and avoids degrading the trivial encrypt API.
@liorbond liorbond merged commit 19662ab into master Mar 25, 2026
7 checks passed
@liorbond liorbond deleted the fix/ci-compile-local-contracts branch March 25, 2026 14:33
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.

2 participants