Skip to content

Bug: Account SDK returns incorrect or missing public address after reconnecting signer #214

@kings-organic

Description

@kings-organic

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

  1. Integrate the Base Account SDK into a test application and configure a persistent signer (e.g., MetaMask or Base Wallet).
  2. Connect the wallet and retrieve the public address from the Account SDK — it displays correctly.
  3. Refresh the page or programmatically reinitialize the SDK with the same signer.
  4. Attempt to read the public address again via the SDK’s API.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions