Skip to content

Commit

Permalink
Merge pull request #1572 from zmcNotafraid/issue-508-12
Browse files Browse the repository at this point in the history
fix: xudt mainnet hash_type was data1
  • Loading branch information
zmcNotafraid authored Jan 16, 2024
2 parents 676d60b + 08e498c commit ad48ce8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/utils/ckb_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ def self.cell_type(type_script, output_data)
[
CkbSync::Api.instance.spore_cluster_code_hash,
*CkbSync::Api.instance.spore_cell_code_hashes,
].include?(type_script&.code_hash) && type_script&.hash_type == "data1"
].include?(type_script&.code_hash) && type_script&.hash_type == "data1" ||
CkbSync::Api.instance.mode == CKB::MODE::MAINNET && [CkbSync::Api.instance.xudt_code_hash].include?(type_script&.code_hash) && type_script&.hash_type == "data1"

case type_script&.code_hash
when Settings.dao_code_hash, Settings.dao_type_hash
Expand Down

0 comments on commit ad48ce8

Please sign in to comment.