From 6957be26e91897b33d003d5a03f2be3ca39f2618 Mon Sep 17 00:00:00 2001 From: Oleksandr Myshchyshyn Date: Thu, 19 Dec 2024 17:38:43 +0200 Subject: [PATCH] Revert changes for converting TransactionTarget to json --- src/types/TransactionTarget.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/types/TransactionTarget.ts b/src/types/TransactionTarget.ts index fc2c9e7d..12b097b8 100644 --- a/src/types/TransactionTarget.ts +++ b/src/types/TransactionTarget.ts @@ -556,10 +556,14 @@ export class TransactionTarget { return 'Native'; } else if (this.stored !== undefined) { const serializer = new TypedJSON(StoredTarget); - return serializer.toPlainJson(this.stored); + return { + Stored: serializer.toPlainJson(this.stored) + }; } else if (this.session !== undefined) { const serializer = new TypedJSON(SessionTarget); - return serializer.toPlainJson(this.session); + return { + Session: serializer.toPlainJson(this.session) + }; } else { throw new Error('unknown target type'); }