Skip to content

fix(hardhat-plugin): keep config.cofhe when localcofhe is user-defined - #342

Open
crazywriter1 wants to merge 2 commits into
FhenixProtocol:masterfrom
crazywriter1:fix/hardhat-plugin-localcofhe-config
Open

fix(hardhat-plugin): keep config.cofhe when localcofhe is user-defined#342
crazywriter1 wants to merge 2 commits into
FhenixProtocol:masterfrom
crazywriter1:fix/hardhat-plugin-localcofhe-config

Conversation

@crazywriter1

Copy link
Copy Markdown

Summary

  • extendConfig used to return early whenever networks.localcofhe was set by the user, which skipped injecting eth-sepolia / arb-sepolia presets and never assigned config.cofhe.
  • Tasks that read hre.config.cofhe.* then crash (Cannot read properties of undefined (reading 'gasWarning')).
  • Scope the skip to only the localcofhe network inject, matching @cofhe/hardhat-3-plugin.

Test plan

  • No localcofhe override → default localcofhe + sepolia presets + config.cofhe present
  • Custom networks.localcofhe only → user URL kept, config.cofhe set (no crash on hre.config.cofhe)
  • Custom localcofhe + cofhe: { gasWarning: true, ... } → options applied

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

@crazywriter1 is attempting to deploy a commit to the Fhenix Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5224625

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@cofhe/hardhat-plugin Patch
@cofhe/site Patch
@cofhe/sdk Patch
@cofhe/mock-contracts Patch
@cofhe/hardhat-3-plugin Patch
@cofhe/react Patch
@cofhe/example-react Patch
@cofhe/abi Patch
@cofhe/foundry-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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