Skip to content

Commit 4c40cc7

Browse files
authored
Merge pull request #2216 from oasisprotocol/mz/txListFix
Prevent throwing unknown error in transactions list
2 parents dee3f98 + 5f29ebb commit 4c40cc7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.changelog/2216.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Prevent throwing unknown error in transactions list

src/vendors/nexus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function parseTransactionsList(list: (NexusTransaction | ExtendedRuntimeTransact
267267
? TransactionStatus.Successful
268268
: TransactionStatus.Failed,
269269
timestamp: transactionDate.getTime(),
270-
to: t.to_eth ?? t.to ?? (t.body as { to?: string }).to ?? undefined,
270+
to: t.to_eth ?? t.to ?? (t.body as { to?: string })?.to ?? undefined,
271271
type: getTransactionType(t.method),
272272
runtimeName: t.runtimeName,
273273
runtimeId: t.runtimeId,

0 commit comments

Comments
 (0)