Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionView::Template::Error: undefined method `tx_hash' for nil:NilClass #811

Open
sentry-io bot opened this issue Jan 7, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 7, 2025

Sentry Issue: CKB-EXPLORER-API-MAINNET-A4

NoMethodError: undefined method `tx_hash' for nil:NilClass

        tx_hash: cell_output.tx_hash,
                            ^^^^^^^^
  app/models/cell_dependency.rb:16:in `to_raw'
    tx_hash: cell_output.tx_hash,
  app/models/ckb_transaction.rb:186:in `map'
    cell_dependencies.includes(:cell_output).to_a.map(&:to_raw)
  app/models/ckb_transaction.rb:186:in `cell_deps'
    cell_dependencies.includes(:cell_output).to_a.map(&:to_raw)
  app/views/api/v2/scripts/ckb_transactions.json.jbuilder:11:
    json.cell_deps tx.cell_deps
  app/views/api/v2/scripts/ckb_transactions.json.jbuilder:2:
    json.ckb_transactions @ckb_transactions do |tx|
...
(152 additional frame(s) were not displayed)

ActionView::Template::Error: undefined method `tx_hash' for nil:NilClass

        tx_hash: cell_output.tx_hash,
                            ^^^^^^^^
@sentry-io sentry-io bot added the bug Something isn't working label Jan 7, 2025
@zmcNotafraid
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant