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

**URL:** <https://ghostforum.org/t/ghost-extension-wallet-sign-request-popup-renders-blank-on-undecodable-calldata-no-error-boundary/178>\
**Category:** Resolved\
**Tags:** gst-extension-wallet\
**Created:** [October 9, 2026, 3:03am UTC](https://ghostforum.org/t/ghost-extension-wallet-sign-request-popup-renders-blank-on-undecodable-calldata-no-error-boundary/178 "2026-10-09T03:03:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rusdiwireng](https://ghostforum.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@Rusdiwireng](https://ghostforum.org/u/Rusdiwireng)\
**Post date:** [October 9, 2026, 3:03am UTC](https://ghostforum.org/t/ghost-extension-wallet-sign-request-popup-renders-blank-on-undecodable-calldata-no-error-boundary/178/1 "2026-10-09T03:03:35Z")

</div>

**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).

---

<div class="post-metadata">

**Author:** ![VoidDragon](https://ghostforum.org/user_avatar/ghostforum.org/voiddragon/32/16_2.png) [@VoidDragon](https://ghostforum.org/u/VoidDragon)\
**Post date:** [October 11, 2026, 3:23pm UTC](https://ghostforum.org/t/ghost-extension-wallet-sign-request-popup-renders-blank-on-undecodable-calldata-no-error-boundary/178/2 "2026-10-11T15:23:54Z")

</div>

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](https://git.ghostchain.io/ghostchain/ghost-extension-wallet/src/commit/d3274222f9aaa99456ed8759687c2915d21eeac8) please?

---

<div class="post-metadata">

**Author:** ![Rusdiwireng](https://ghostforum.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@Rusdiwireng](https://ghostforum.org/u/Rusdiwireng)\
**Post date:** [October 13, 2026, 5:00am UTC](https://ghostforum.org/t/ghost-extension-wallet-sign-request-popup-renders-blank-on-undecodable-calldata-no-error-boundary/178/3 "2026-10-13T05:00:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://ghostforum.org/uploads/default/original/1X/f825b09f2858dd06dbbbfa63828cd03c35016a8c.png) [@system](https://ghostforum.org/u/system)\
**Post date:** [October 16, 2026, 5:00am UTC](https://ghostforum.org/t/ghost-extension-wallet-sign-request-popup-renders-blank-on-undecodable-calldata-no-error-boundary/178/4 "2026-10-16T05:00:19Z")

</div>

Closed on October 16, 2026, 5:00am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
