Skip to content

fix: added accessData on read only wallet so methods that need storage don't crash#955

Merged
andreabadesso merged 1 commit intomasterfrom
fix/read-only-access-data
Oct 22, 2025
Merged

fix: added accessData on read only wallet so methods that need storage don't crash#955
andreabadesso merged 1 commit intomasterfrom
fix/read-only-access-data

Conversation

@andreabadesso
Copy link
Copy Markdown
Contributor

@andreabadesso andreabadesso commented Oct 21, 2025

Motivation

The startReadOnly method starts the wallet without writing to storage, this causes some methods to crash.

Acceptance Criteria

  • We must generate access data from the xpubkey

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.76%. Comparing base (558073f) to head (03ba455).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #955   +/-   ##
=======================================
  Coverage   84.75%   84.76%           
=======================================
  Files         112      112           
  Lines        8077     8079    +2     
  Branches     1740     1740           
=======================================
+ Hits         6846     6848    +2     
  Misses       1203     1203           
  Partials       28       28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andreabadesso andreabadesso force-pushed the fix/read-only-access-data branch from a684de5 to e2bb0fb Compare October 22, 2025 00:02
@andreabadesso andreabadesso force-pushed the fix/read-only-access-data branch from e2bb0fb to 03ba455 Compare October 22, 2025 00:10
@andreabadesso andreabadesso changed the title fix: added a minimal accessData so methods that need storage don't crash fix: added accessData on read only wallet so methods that need storage don't crash Oct 22, 2025
@andreabadesso andreabadesso requested a review from r4mmer October 22, 2025 00:11
@andreabadesso andreabadesso self-assigned this Oct 22, 2025
@andreabadesso andreabadesso added the bug Something isn't working label Oct 22, 2025
@github-project-automation github-project-automation bot moved this from Todo to In Review (WIP) in Hathor Network Oct 22, 2025
@andreabadesso andreabadesso merged commit 0b8b300 into master Oct 22, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Oct 22, 2025
@andreabadesso andreabadesso deleted the fix/read-only-access-data branch October 22, 2025 00:54
@pedroferreira1 pedroferreira1 moved this from Waiting to be deployed to Done in Hathor Network Oct 23, 2025
r4mmer added a commit that referenced this pull request Dec 11, 2025
…-policy

* origin/master: (31 commits)
  feat: fee token creation (#858)
  fix: checkAddressMine was crashing when called with an empty array (#977)
  feat: the nano amount field should accept 0
  Merge pull request #975 from HathorNetwork/chore/bump-v2.11.0
  feat: add nano execution logs API (#973)
  Refactor: Fullnode facade to Typescript (#972)
  Merge pull request #970 from HathorNetwork/chore/bump-v2.10.0
  fix: added missing tx proposal delete schema (#969)
  feat: add missing api calls for graphviz and nano (#967)
  Merge pull request #965 from HathorNetwork/feat/complete-token-info-object
  chore: bump package to v2.9.1 (#962)
  feat: catch and store async promise error (#960)
  chore: bump wallet lib to v2.9.0 (#958)
  tests: use core v0.67.0 docker image for the integration tests (#956)
  tests: update integration tests blueprints for the new core sdk (#954)
  fix: added a minimal accessData so methods that need storage don't crash (#955)
  feat: fee header (#951)
  feat: added read-only start (#950)
  fix: dont add metadata changed for voided txs (#948)
  test: Wallet Service infrastructure (#909)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants