Repository navigation
Conversation
This was referenced Oct 19, 2026
Rust-Checks has failed on main since the NU6.3 toolchain bump: rustfmt differs in nine files, and clippy on nightly-2025-06-15 rejects ten uninlined format arguments in webzjs-keys and one map iteration in webzjs-requests under -D warnings. Apply rustfmt and clippy's own suggestions; no behaviour changes.
…nsfer errors
The shared Pczt wrapper unwrapped the result of pczt::Pczt::parse, so a
PCZT the snap could not parse became a WASM trap ("RuntimeError:
unreachable") with no detail. from_bytes and serialize now return the
parse or encoding error to JS as an exception that names the cause.
On the web wallet side, MetaMask snap failures reject with a plain
JSON-RPC error object rather than an Error, so the result card showed
"[object Object]". The transfer flow now tracks which step was running
and builds a message from that step plus the real detail, with
dedicated wording for user rejections and WASM traps.
The snap side had one more trap: Signer::new unwrapped its result, so a
PCZT that parsed but failed the signer pre-checks (a missing anchor, a
malformed bundle) still trapped inside MetaMask. It now returns the error.
The result card also stops claiming "Nothing was sent" for failures that
happen after the transaction has been broadcast (saving the wallet,
refreshing state): those now say the payment is out and must not be
repeated, and a failure during the broadcast itself says the outcome is
uncertain and points at the transaction history.
create_pczt_from_proposal returns ProposalNotSupported when the proposal needs something this wallet build cannot do: a pool it does not track, a multi-step proposal, a TEX recipient without transparent inputs. The result card showed that raw word. Map it to a message that says the wallet cannot build the payment with this version, suggests the recipient's transparent address for the transfer flow, and names shielding for the shield flow. The wording does not claim a cause, because the variant covers several; the raw detail stays on the card for support. The match is on the bare variant name, which the wallet formats with Debug, so it cannot catch other errors that merely mention it.
sqhell
force-pushed
the
fix/pczt-parse-error
branch
from
October 19, 2026 16:51
75c8196 to
f1e648e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pcztwrapper returns parse and encoding errors to JS as exceptions that name the cause instead of unwrapping (a wasm trap).Signer::newreturns its error instead of unwrapping, so a PCZT that parses but fails the signer pre-checks no longer traps inside MetaMask.ProposalNotSupportedis explained in plain words (matched on the bare variant name) with the raw detail kept on the card.Why
A PCZT the snap could not parse became
RuntimeError: unreachablewith no detail, snap failures showed as[object Object], and a payment that had already been broadcast was reported as not sent, inviting a duplicate payment.Stack
Position 6 of 15 in the WebZjs release order, to be merged in this order into
main. Independent of the feature PRs but rebased on #20 (chore/rust-checks) so its checks are green; the commits of this PR alone are here: sqhell/WebZjs@chore/rust-checks...fix/pczt-parse-errorchore/rust-checksfix/reuse-sync-workerfix/grpc-web-trailers-onlyfix/resync-dialogfeat/send-againfix/pczt-parse-error(this PR)fix/sign-change-paired-spendsfix/historic-sync-oomfeat/history-resync-hintfix/wallet-store-epochsfeat/ironwood-poolfix/history-from-spendsfeat/wallet-statsfeat/resumable-syncfeat/resync-resumeRust pins reference
sqhell/zcash_client_memoryandsqhell/librustzcashby revision so CI builds exactly what was tested; once the zcash_client_memory stack (red-dev-inc/zcash_client_memory #16 to #21) merges, the memory pin goes back tored-dev-inc/zcash_client_memoryfeat/snap-nu63. The integration branchtest/all-fixeson the fork merges all fourteen and is the build that was tested end to end.Tests