We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dee3f98 commit 5f29ebbCopy full SHA for 5f29ebb
2 files changed
.changelog/2216.bugfix.md
@@ -0,0 +1 @@
1
+Prevent throwing unknown error in transactions list
src/vendors/nexus.ts
@@ -267,7 +267,7 @@ function parseTransactionsList(list: (NexusTransaction | ExtendedRuntimeTransact
267
? TransactionStatus.Successful
268
: TransactionStatus.Failed,
269
timestamp: transactionDate.getTime(),
270
- to: t.to_eth ?? t.to ?? (t.body as { to?: string }).to ?? undefined,
+ to: t.to_eth ?? t.to ?? (t.body as { to?: string })?.to ?? undefined,
271
type: getTransactionType(t.method),
272
runtimeName: t.runtimeName,
273
runtimeId: t.runtimeId,
0 commit comments