Skip to content

Commit

Permalink
Aligned signature of method in wallet api interface with implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Sep 6, 2023
1 parent 651af12 commit 6f4d9a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/browser-wallet-api-helpers/src/wallet-api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,12 @@ interface MainWalletApi {
* user will be prompted to select which accounts should be connected. The list of connected accounts is returned
* to the caller. If a connection has already been accepted previously, then the returned promise will resolve
* with the list of connected accounts. Note that the list of accounts may be empty.
*
* @throws If connection is rejected by the user
*
* @returns {string[]} The list of accounts connected to the application.
*/
requestAccounts(): Promise<string[] | undefined>;
requestAccounts(): Promise<string[]>;

/**
* Returns some connected account, prioritizing the most recently selected. Resolves with account address or undefined if there are no connected account.
Expand Down

0 comments on commit 6f4d9a9

Please sign in to comment.