Skip to content

Commit

Permalink
add param
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval-fireblocks committed Nov 26, 2024
1 parent 8dad09a commit 48ec084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ncw-api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ export class NcwApiClient implements NcwSdk {
`${this.NCW_BASE_PATH}/${walletId}/setup_status`);
}

public async getDeviceSetupStatus(walletId: string, deviceId: string): Promise<NCW.DeviceKeySetupResponse> {
public async getDeviceSetupStatus(walletId: string, deviceId: string, enabled = true): Promise<NCW.DeviceKeySetupResponse> {
return await this.apiClient.issueGetRequest(
`${this.NCW_BASE_PATH}/${walletId}/devices/${deviceId}/setup_status`);
`${this.NCW_BASE_PATH}/${walletId}/devices/${deviceId}/setup_status?enabled=${enabled}`);
}

public async setWalletRequiredAlgorithms(walletId: string, algorithms: SigningAlgorithm[]): Promise<void> {
Expand Down
3 changes: 2 additions & 1 deletion src/ncw-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ export interface NcwSdk {
*
* @param {string} walletId
* @param {string} deviceId
* @param {boolean} [enabled=true] State of the device. default: true.
* @return {*} {Promise<NCW.DeviceKeySetupResponse>}
*/
getDeviceSetupStatus(walletId: string, deviceId: string): Promise<NCW.DeviceKeySetupResponse>;
getDeviceSetupStatus(walletId: string, deviceId: string, enabled?: boolean): Promise<NCW.DeviceKeySetupResponse>;

/**
* Gets utxo list for an asset
Expand Down

0 comments on commit 48ec084

Please sign in to comment.