Commit 583ea5ba authored by Gandalf's avatar Gandalf
Browse files

Add p-limit to serialize WASM chain access

Prevent WASM memory corruption from concurrent calls to the shared
wax chain instance. WASM modules are not thread-safe, and concurrent
access from Next.js Server Components can cause "memory access out of
bounds" errors.

Uses p-limit(1) to serialize all getChain() calls, ensuring only one
WASM operation runs at a time.
parent 7ba09f5c
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment