[ghost-extension-wallet] Sign-request popup renders blank on undecodable calldata; no error boundary

Component: ghost-extension-wallet @ 66bd207, src/containers/WalletPopup/components/DecodedCallData.tsx:48,51, src/containers/WalletPopup/api/decodeCallData.ts.

Description: decodeCallData returns undefined on any failure (the catch branch returns undefined). The component only guards on isLoading; once loading finishes it dereferences decodedCallData!.pallet.value.name and decodedCallData!.args.value with non-null assertions and no null check. There is no error boundary in the popup tree. Any site can therefore blank the entire approval window (origin, address, payload, Approve/Cancel buttons) by requesting a signature over garbage bytes, for example createTx(chainId, from, "0xdeadbeef"), producing TypeError: Cannot read properties of undefined (reading 'pallet').

Impact: Fails closed (closing the broken window rejects; no signature is produced), so this is a denial of the approval UI, not a signing bypass. Distinct from round-1 W6b-F1 (which is about missing consent, not a blank render).

Reproduction: Rendered the real component under vitest/jsdom with the fetcher resolving undefined; the popup blanks.

Severity: Low. Reason: fails closed; UI denial only.

Recommendation: Null-check the decoded result with a fallback to raw hex display, and add an error boundary around the popup tree.

Verification: VERIFIED (local component render test).

Thank you for your report!

It looks like your report was written right before we’ve moved in a new version of the extension. Can you verify does same is persits in the latest commit please?

Checked the linked commit (d3274222, the “rewrite extension around new UX” from Oct 8). Good news: the reported defect is fixed there.

DecodedCallData.tsx was rewritten since my report. The old pattern — guarding only on isLoading and then dereferencing decodedCallData!.pallet.value.name with a non-null assertion — is gone. The new version destructures error from useSWR and has an explicit if (error || !decodedCallData) branch that renders a “Decoding failed” panel with the error message instead of crashing, and the success path uses optional chaining throughout. decodeCallData still returns undefined on failure, but the component now handles that gracefully, so garbage calldata can no longer blank the popup through this path. Confirmed resolved on my end.

One residual worth keeping on your radar: there is still no React error boundary anywhere in the popup tree (no ErrorBoundary or componentDidCatch in the repo at that commit). The null-check fixes this specific crash, but the second half of my recommendation — a boundary so any other render-path throw cannot take down the whole approval window — is still open. Low priority given the crash path is closed.