Skip to content

Commit c293208

Browse files
add smsDebugURL to iexecOptions
1 parent 1252b27 commit c293208

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/sdk/src/lib/IExecDataProtectorModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ abstract class IExecDataProtectorModule {
5454
{
5555
ipfsGatewayURL: ipfsGateway,
5656
...options?.iexecOptions,
57-
smsURL: DEFAULT_DEBUG_SMS_URL, // we may want to make it overridable in the future?
57+
smsURL: options?.iexecOptions?.smsDebugURL || DEFAULT_DEBUG_SMS_URL,
5858
}
5959
);
6060
} catch (e) {

packages/sdk/src/lib/types/commonTypes.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,14 @@ export type DataProtectorConfigOptions = {
6969
* Options specific to iExec integration.
7070
* If not provided, default iexec options will be used.
7171
*/
72-
iexecOptions?: IExecConfigOptions;
72+
iexecOptions?: IExecConfigOptionsExtended;
7373
};
7474

75+
interface IExecConfigOptionsExtended extends IExecConfigOptions {
76+
// adds smsDebugURL to possible options, used ton configure an IExec debug instance seamlessly (no JS doc test purpose only)
77+
smsDebugURL?: string;
78+
}
79+
7580
// ---------------------ProtectedData Schema Types------------------------------------
7681
export type MimeType =
7782
| 'application/octet-stream'

0 commit comments

Comments
 (0)