diff --git a/src/brizo/Brizo.ts b/src/brizo/Brizo.ts index 3114aef..bbb3e29 100644 --- a/src/brizo/Brizo.ts +++ b/src/brizo/Brizo.ts @@ -138,7 +138,10 @@ export class Brizo extends Instantiable { url += `&consumerAddress=${address}` url += `&serviceAgreementId=${noZeroX(serviceAgreementId)}` url += (algorithmDid && `&algorithmDid=${algorithmDid}`) || '' - url += (algorithmMeta && `&algorithmMeta=${JSON.stringify(algorithmMeta)}`) || '' + url += + (algorithmMeta && + `&algorithmMeta=${encodeURIComponent(JSON.stringify(algorithmMeta))}`) || + '' url += (output && `&output=${JSON.stringify(output)}`) || '' url += (jobId && `&jobId=${jobId}`) || ''