-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(useWallet): ensure consistent wallet interface across adapters (#346
) * fix(*): align active wallet handling across framework adapters Refactor active wallet handling in React and Vue adapters to consistently return `Wallet` interface while preserving `BaseWallet` for transaction signing. Extract `transformToWallet` helper to reduce code duplication. Fix `Wallet` interface to use `WalletId` type instead of string for `id`. * refactor(solid): remove unused Wallet interface Remove unused `Wallet` interface from Solid adapter since it follows a more idiomatic approach of returning individual reactive properties rather than grouped `Wallet` objects like React and Vue adapters. * fix(solid): update tests to mock BaseWallet array Update test mocks to use `BaseWallet` instances instead of `Wallet` objects, matching the actual implementation which returns `BaseWallet` instances in the `wallets` array rather than the framework-specific `Wallet` interface.
- Loading branch information
Showing
4 changed files
with
61 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters