You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update relayer-sdk to 0.4.1 and fix browser mock mode (#43)
* chore: update relayer-sdk to 0.4.1, fhevm packages to latest
- @zama-fhe/relayer-sdk → 0.4.1 (all packages)
- @fhevm/solidity → ^0.11.1
- @fhevm/hardhat-plugin → ^0.4.2
- @fhevm/mock-utils → ^0.4.2
- ethers → ^6.16.0 (peer dep requirement)
- @nomicfoundation/hardhat-ethers → ^3.1.3 (peer dep requirement)
- Add turbopack resolveAlias for Node.js built-ins (fixes node-tkms fs error)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: include hardhat chain in wagmi config so network switching works
The wagmi config only included sepolia, so useSwitchChain had no
hardhat chain to switch to. Now both chains and transports are
always configured (hardhat transport is harmless in production).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: enable fhevm mock mode in browser for hardhat localhost
- Update relayer-sdk CDN URL to 0.4.1 in layout.tsx and constants.ts
- Replace empty-module.js with browser-compatible fs shim that loads
WASM files via synchronous XHR from public/
- Copy node-tkms kms_lib_bg.wasm to public/ so the fs shim can serve it
- This allows @fhevm/mock-utils to run in the browser, enabling local
encrypt/decrypt on hardhat without routing through the remote relayer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: patch node-tkms for browser compatibility and fix WASM loading
- Fix synchronous XHR binary loading using overrideMimeType instead of
responseType (which is not supported for sync XHR)
- Add tfhe_bg.wasm to public/ for browser serving
- Patch node-tkms postinstall to use globalThis.TextEncoder/TextDecoder
instead of require('util') (avoids breaking Privy's isKeyObject)
- Use empty-module.js fs shim in webpack fallback for production builds
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments