We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ff50cf commit 7ead7c4Copy full SHA for 7ead7c4
1 file changed
src/commands.ts
@@ -244,15 +244,24 @@ export class Commands {
244
245
const orderTx = await tx.wait();
246
247
- const urlDownloadUrl = await ProviderInstance.getDownloadUrl(
248
- dataDdo.id,
249
- serviceId,
250
- 0,
251
- orderTx.hash,
252
- this.oceanNodeUrl,
253
- this.signer,
254
- policyServer
255
- );
+ const urlDownloadUrl = policyServer
+ ? await ProviderInstance.getDownloadUrl(
+ dataDdo.id,
+ serviceId,
+ 0,
+ orderTx.hash,
+ this.oceanNodeUrl,
+ this.signer,
+ policyServer
256
+ )
257
+ : await ProviderInstance.getDownloadUrl(
258
259
260
261
262
263
+ this.signer
264
+ );
265
try {
266
const path = args[2] ? args[2] : ".";
267
const { filename } = await downloadFile(urlDownloadUrl, path);
0 commit comments