Skip to content

Commit

Permalink
Merge pull request #278 from fireblocks/fix-get-wallet-devices
Browse files Browse the repository at this point in the history
fix: getWalletDevices type
  • Loading branch information
AlonFireblocks authored Jun 20, 2024
2 parents 0c99c96 + a791716 commit a96f2d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ncw-api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class NcwApiClient implements NcwSdk {
{ enabled });
}

public async getWalletDevices(walletId: string): Promise<NCW.Device> {
public async getWalletDevices(walletId: string): Promise<NCW.Device[]> {
return await this.apiClient.issueGetRequest(
`${this.NCW_BASE_PATH}/${walletId}/devices/`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ncw-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface NcwSdk {
* @param {string} walletId
* @return {*} {Promise<NCW.Device>}
*/
getWalletDevices(walletId: string): Promise<NCW.Device>;
getWalletDevices(walletId: string): Promise<NCW.Device[]>;

/**
* Set NCW wallet device's enabled state
Expand Down

0 comments on commit a96f2d2

Please sign in to comment.