Skip to content

gasPriceStore has no tests: cached gas-price state is uncovered #905

Description

@nanaf6203-bit

gasPriceStore has no tests: cached gas-price state is uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

gasPriceStore (src/store/gasPriceStore.ts) caches gas prices app-wide. It has no tests. A regression that serves stale prices or fails to update ships silently into transaction confirmation screens.

Proposal

  • Add a spec covering set/update, staleness handling, and reset.

Acceptance criteria

  • The spec asserts gas-price state updates; it passes via npm test.

Getting started

  • src/store/gasPriceStore.ts — the store
  • src/store/__tests__/transactionStore.test.ts — the pattern

Commands: npm test.

Good first files to read: src/store/gasPriceStore.ts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programTrivialtestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions