Skip to content

Preserve Monero wallet error messages across the C++ bridge - #1216

Merged
binarybaron merged 2 commits into
masterfrom
fix/monero-wallet-error-string
Oct 7, 2026
Merged

binarybaron merged 2 commits into
masterfrom
fix/monero-wallet-error-string

Conversation

@binarybaron

Copy link
Copy Markdown

FfiWallet::check_error read the original empty Rust string after statusWithErrorString populated a separate C++ string. Wallet failures therefore reported unknown error, error not set instead of their actual cause.

Read the populated C++ string and add a regression test that passes an invalid transaction ID to the real wallet without requiring a running daemon. The test fails with the old implementation and passes with this fix. Includes a changelog entry.

Validation:

  • cargo test -p monero-sys --test wallet_error passed; confirmed failure before the fix.
  • cargo c --all-features, cargo c --tests, and cargo c --all-targets passed.
  • git diff --check passed. Formatting checks report pre-existing differences in untouched code; no formatting differences are reported for the changed error handling or new test.

Implemented with Codex assistance.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Deploying eigenwallet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5bf5b34
Status:⚡️  Build in progress...

View logs

@binarybaron
binarybaron merged commit 678c68a into master Oct 7, 2026
80 of 88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant