-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Describe the bug
When an account with a persistent signer (e.g., injected provider or local key store) is used, and the application is reloaded or reconnected, the Account SDK sometimes returns an undefined, empty, or stale public address instead of the expected current address. This can cause downstream operations (such as preparing transactions or displaying the user’s wallet address) to fail or show incorrect information.
Steps
- Integrate the Base Account SDK into a test application and configure a persistent signer (e.g., MetaMask or Base Wallet).
- Connect the wallet and retrieve the public address from the Account SDK — it displays correctly.
- Refresh the page or programmatically reinitialize the SDK with the same signer.
- Attempt to read the public address again via the SDK’s API.
- Observe that the returned address is empty, undefined, or differs from the expected current address.
Expected behavior
When reconnecting a signer or reinitializing the SDK with a signer, the Account SDK should consistently return the correct, current public address associated with that signer. There should be no stale, empty, or undefined values, and applications should be able to reliably fetch the address after every reload or reinitialization.
Version
No response
Additional info
No response
Desktop
No response
Smartphone
No response