Skip to content

Commit

Permalink
Fix undefined type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
psheth9 committed May 10, 2024
1 parent 33985fc commit 84eda50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/soroban/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ function parseSuccessful(
return {
type: entryDiff.type,
key: entryDiff.key,
before: xdr.LedgerEntry.fromXDR(entryDiff.before, 'base64'),
after: xdr.LedgerEntry.fromXDR(entryDiff.after, 'base64'),
before: !!entryDiff.before ? xdr.LedgerEntry.fromXDR(entryDiff.before, 'base64') : undefined,
after: !!entryDiff.after ? xdr.LedgerEntry.fromXDR(entryDiff.after, 'base64') : undefined,
};
})
: null,
: undefined,
};

if (!sim.restorePreamble || sim.restorePreamble.transactionData === '') {
Expand Down

0 comments on commit 84eda50

Please sign in to comment.