Skip to content

Commit

Permalink
fix: remove duplicate cell datum when importing pending transactions (#…
Browse files Browse the repository at this point in the history
…1387)

* fix: remove duplicate cell datum when importing pending transactions

* chore: log import transaction error
  • Loading branch information
rabbitz committed Aug 15, 2023
1 parent d42a2c1 commit 6c5e67e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions app/jobs/import_transaction_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ def perform(tx_hash, extra_data = {})
status: "pending"
)

if output_data.present? && output_data != "0x"
(cell.cell_datum || cell.build_cell_datum).update(data: [output_data[2..]].pack("H*"))
end
process_output cell
process_deployed_cell(cell.lock_script)
process_deployed_cell(cell.type_script) if cell.type_script
Expand Down
7 changes: 0 additions & 7 deletions lib/websocket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ def subscribe(connection, topic)
})
rescue StandardError => e
Rails.logger.error "Error occurred during ImportTransactionJob data: #{data}, error: #{e.message}"
Sentry.capture_message(
"Import pending transaction",
extra: {
tx_hash: data["transaction"]["hash"],
timestamp: data["timestamp"].hex
}
)
end
end
end
Expand Down

0 comments on commit 6c5e67e

Please sign in to comment.