Skip to content

wallet: Expose initializationConfigurations on the Wallet constructor #8795

@grypez

Description

@grypez

Problem

initialize() in packages/wallet/src/initialization/initialization.ts already accepts an initializationConfigurations parameter that allows the default controller set to be overridden or extended. The Wallet class does not expose this parameter, so consumers have no way to substitute or augment controllers without forking the initialization logic.

Proposed direction

Accept an optional initializationConfigurations?: InitializationConfiguration<unknown, unknown>[] in the Wallet constructor and thread it through to initialize(). Document the limitation that additional configurations' action and event types are not reflected in the messenger type — the messenger remains typed against the default controller set only.

Acceptance

  • The Wallet constructor accepts initializationConfigurations.
  • It is forwarded to initialize().
  • The type limitation on messenger is noted in a code comment.
  • Existing tests pass; a test covers the override path.
  • Changelog entry added.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions