Skip to content

Commit

Permalink
Merge pull request #386 from Concordium/bugfix/wallet-api-type-mismatch
Browse files Browse the repository at this point in the history
Aligned signature of method in wallet api interface with implementation
  • Loading branch information
soerenbf authored Sep 6, 2023
2 parents 651af12 + 6f4d9a9 commit e6fd0a8
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 e6fd0a8

Please sign in to comment.