Skip to content

fix(wallet): show 'not supported' instead of loading for unsupported providers - #181

Merged
Gaubee merged 1 commit into
mainfrom
fix/ethereum-rpc-loading-state
Jan 7, 2026
Merged

Gaubee merged 1 commit into
mainfrom
fix/ethereum-rpc-loading-state

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Problem

When a provider doesn't support transaction history (like ethereum-rpc), the UI shows infinite loading instead of a 'not supported' message.

Root Cause

In wallet-address-portfolio-from-provider.tsx:

const transactionsLoading = !transactionsEnabled || transactionsQuery.isLoading

When transactionsEnabled = false, transactionsLoading is always true.

Fix

  • Change loading logic to use AND: transactionsEnabled && transactionsQuery.isLoading
  • When provider doesn't support a feature, immediately show fallback warning
  • Also update etherscan-v2 status in whitebook (API key is configured)

Changes

  • src/components/wallet/wallet-address-portfolio-from-provider.tsx
  • docs/white-book/04-服务篇/01-服务架构/api-providers-status.md

…cks capability

- Fix transactionsLoading logic: use AND instead of OR condition
- When provider.supportsTransactionHistory is false, show fallback warning immediately
- Update etherscan-v2 status to 'normal' in whitebook (API key configured)
@Gaubee
Gaubee merged commit e3eaa50 into main Jan 7, 2026
5 checks passed
@Gaubee
Gaubee deleted the fix/ethereum-rpc-loading-state branch January 7, 2026 08:56
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