From 35daf5c3b857f6e3d6a37003ff8fef892941b8ec Mon Sep 17 00:00:00 2001 From: Oleksandr Myshchyshyn Date: Fri, 15 Nov 2024 18:29:34 +0200 Subject: [PATCH] Removed unnecessary object declaration for deplot / transaction while serialization --- src/types/Deploy.ts | 2 +- src/types/Transaction.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/Deploy.ts b/src/types/Deploy.ts index 18588949a..dd160ad69 100644 --- a/src/types/Deploy.ts +++ b/src/types/Deploy.ts @@ -499,7 +499,7 @@ export class Deploy { */ public static toJson = (deploy: Deploy) => { const serializer = new TypedJSON(Deploy); - return { deploy: serializer.toPlainJson(deploy) }; + return serializer.toPlainJson(deploy); }; /** diff --git a/src/types/Transaction.ts b/src/types/Transaction.ts index eac7cf89c..196a4c2fb 100644 --- a/src/types/Transaction.ts +++ b/src/types/Transaction.ts @@ -536,7 +536,7 @@ export class TransactionV1 { public static toJson = (transaction: TransactionV1) => { const serializer = new TypedJSON(TransactionV1); - return { transaction: serializer.toPlainJson(transaction) }; + return serializer.toPlainJson(transaction); }; }