From 08e498c24f441d84e24967db2b48d87576b2866b Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Tue, 16 Jan 2024 20:12:57 +0800 Subject: [PATCH] fix: xudt mainnet hash_type was data1 Signed-off-by: Miles Zhang --- app/utils/ckb_utils.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/utils/ckb_utils.rb b/app/utils/ckb_utils.rb index e54c92782..f640e3ddc 100644 --- a/app/utils/ckb_utils.rb +++ b/app/utils/ckb_utils.rb @@ -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