Skip to content

Fix null tx.to crash on contract creation transactions#154

Merged
niran merged 1 commit intomasterfrom
niran/fix-null-tx-to
Mar 17, 2026
Merged

Fix null tx.to crash on contract creation transactions#154
niran merged 1 commit intomasterfrom
niran/fix-null-tx-to

Conversation

@niran
Copy link
Contributor

@niran niran commented Mar 17, 2026

Summary

  • tx.to is null for contract creation transactions (no recipient address), causing Cannot read properties of null (reading 'slice') on the bundle detail page
  • Updated BundleTransaction.to type from string to string | null to match Ethereum transaction semantics
  • Added null guards in TransactionDetails to display "Contract Creation" instead of crashing

tx.to is null for contract creation transactions, causing
"Cannot read properties of null (reading 'slice')" in the
bundle detail page. Add null guards and display "Contract
Creation" instead.
@niran niran merged commit a7b365e into master Mar 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant