Skip to content

Return all transaction history rows unless a limit is asked for - #33

Merged
mattgle merged 1 commit into
devfrom
fix/tx-history-no-silent-cap
Aug 18, 2026
Merged

mattgle merged 1 commit into
devfrom
fix/tx-history-no-silent-cap

Conversation

@mattgle

@mattgle mattgle commented Aug 17, 2026

Copy link
Copy Markdown

Context

getTxHistory defaulted limit to 100. The WalletStorage interface declares that parameter optional and documents no cap, so a caller that omitted it silently received at most 100 rows while the declared contract promised the wallet's history for that chain.

Truncation gave no signal. getTxHistory(walletId, chainId) reads as exhaustive at the call site and was not. It is also the only query in the package that caps its own result set, and no caller passes a limit today.

Overview

Omitting limit returns every row. Passing one still limits to that many. The parameter stays available for a caller that genuinely wants fewer rows, so this removes the silent default rather than the capability.

The guard lives in the driver-neutral contract suite, so the guarantee holds for every adapter rather than the node one alone.

@mattgle mattgle self-assigned this Aug 17, 2026
@mattgle
mattgle requested a review from bhflm August 17, 2026 14:38
@mattgle
mattgle merged commit ce36d17 into dev Aug 18, 2026
1 check passed
@mattgle
mattgle deleted the fix/tx-history-no-silent-cap branch August 18, 2026 07:25
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