Skip to content

Commit

Permalink
Revert changes for converting TransactionTarget to json
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmyshchyshyn committed Dec 19, 2024
1 parent 3bb045f commit 6957be2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types/TransactionTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 6957be2

Please sign in to comment.