Skip to content

fix: gracefully pass through provider requests when FHEVM is not init…#1

Open
hpmaxi wants to merge 1 commit intomainfrom
fix/issue-80-uninitialized-fhevm-passthrough
Open

fix: gracefully pass through provider requests when FHEVM is not init…#1
hpmaxi wants to merge 1 commit intomainfrom
fix/issue-80-uninitialized-fhevm-passthrough

Conversation

@hpmaxi
Copy link
Copy Markdown
Collaborator

@hpmaxi hpmaxi commented Apr 9, 2026

…ialized

When the FHEVM plugin is not deployed, non-FHE tasks (e.g. contract.pause())
would crash with "The Hardhat Fhevm plugin is not initialized" on any revert.

  • Add tryGetContractsRepository() that returns undefined instead of throwing
  • Skip error formatting/stack rewriting when contracts repo is unavailable
  • Bypass FHEVM provider handling entirely when isDeployed is false

Fixes zama-ai#80

…ialized

  When the FHEVM plugin is not deployed, non-FHE tasks (e.g. contract.pause())
  would crash with "The Hardhat Fhevm plugin is not initialized" on any revert.

  - Add tryGetContractsRepository() that returns undefined instead of throwing
  - Skip error formatting/stack rewriting when contracts repo is unavailable
  - Bypass FHEVM provider handling entirely when isDeployed is false

  Fixes zama-ai#80
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.

Hardhat plugins - Transaction reverts fallback on The Hardhat Fhevm plugin is not initialized.

1 participant