From 254695177df0495f7f78e670674e30868123d7ae Mon Sep 17 00:00:00 2001 From: dgarcia360 Date: Fri, 7 Feb 2020 12:18:27 +0000 Subject: [PATCH] Removed unnecessary parse to object --- src/TransactionURI.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TransactionURI.ts b/src/TransactionURI.ts index 5e19d6e..aba632b 100644 --- a/src/TransactionURI.ts +++ b/src/TransactionURI.ts @@ -66,10 +66,9 @@ export class TransactionURI implements URIScheme { * Build the URI */ build(): string { - const data = typeof this.data === 'object' ? JSON.stringify(this.data) : this.data; const base = TransactionURI.PROTOCOL + TransactionURI.ACTION - + '?data=' + data; + + '?data=' + this.data; const generationHash = this.generationHash ? '&generationHash=' + this.generationHash : ''; const endpoint = this.endpoint ? '&endpoint=' + this.endpoint : ''; const webhook = this.webhook ? '&webhook=' + this.webhook : '';