Skip to content

Commit

Permalink
Removed unnecessary object declaration for deplot / transaction while…
Browse files Browse the repository at this point in the history
… serialization
  • Loading branch information
alexmyshchyshyn committed Nov 15, 2024
1 parent a3fe0a1 commit 35daf5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/Deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/types/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}

Expand Down

0 comments on commit 35daf5c

Please sign in to comment.