Skip to content

Commit

Permalink
Merge pull request #2098 from nervosnetwork/develop
Browse files Browse the repository at this point in the history
Deploy to testnet
  • Loading branch information
rabbitz committed Jul 24, 2024
2 parents a4c11c0 + 2317631 commit e5eeda8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/workers/generate_udt_holder_allocation_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def perform(type_hashes = nil)
type_hashes ||= $redis.smembers("udt_holder_allocation")

type_hashes.each do |type_hash|
udt = Udt.published_xudt.find_by(type_hash:)
udt = Udt.find_by(type_hash:, published: true)
next unless udt

update_btc_holder_allocation(udt)
Expand Down
2 changes: 1 addition & 1 deletion app/workers/update_udt_info_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def perform(block_number)
}

# generate udt holder allocation
if udt.xudt_compatible? || udt.xudt?
if udt.xudt_compatible? || udt.xudt? || xudt.omiga_inscription?
$redis.sadd("udt_holder_allocation", type_hash)
end
end
Expand Down

0 comments on commit e5eeda8

Please sign in to comment.