Skip to content

Commit

Permalink
Merge pull request #2252 from nervosnetwork/develop
Browse files Browse the repository at this point in the history
Deploy to testnet
  • Loading branch information
rabbitz authored Oct 17, 2024
2 parents d4230fc + 4c7f075 commit 7c879cf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/workers/update_udt_info_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ def perform(block_number)
return if local_block.blank?

type_hashes = []
local_block.cell_outputs.udt.select(:id, :type_hash).each do |udt_output|
type_hashes << udt_output.type_hash
end
local_block.cell_outputs.omiga_inscription.select(:id, :type_hash).each do |udt_output|
type_hashes << udt_output.type_hash
end
local_block.cell_outputs.xudt.select(:id, :type_hash).each do |udt_output|
local_block.cell_outputs.where(cell_type: ["udt", "omiga_inscription", "xudt", "xudt_compatible"]).
select(:id, :type_hash).each do |udt_output|
type_hashes << udt_output.type_hash
end
local_block.ckb_transactions.pluck(:id).each do |tx_id|
Expand Down

0 comments on commit 7c879cf

Please sign in to comment.