Skip to content

Commit ed40d20

Browse files
authored
Merge pull request #2543 from nervosnetwork/testnet
Deploy to mainnet
2 parents c3d595e + 688d6dd commit ed40d20

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/utils/ckb_utils.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,10 @@ def self.cell_type(type_script, output_data)
429429
return "omiga_inscription_info"
430430
when *CkbSync::Api.instance.xudt_compatible_code_hashes.product(["type"])
431431
return "xudt_compatible"
432-
when [CkbSync::Api.instance.xudt_code_hash, "type"]
432+
when *[[CkbSync::Api.instance.xudt_code_hash, "type"], [CkbSync::Api.instance.xudt_data_hash, "data1"]]
433433
return Rails.cache.fetch(type_script.compute_hash) do
434434
OmigaInscriptionInfo.exists?(udt_hash: type_script.compute_hash) ? "omiga_inscription" : "xudt"
435435
end
436-
when [CkbSync::Api.instance.xudt_data_hash, "data1"]
437-
return "xudt"
438436
when [CkbSync::Api.instance.unique_cell_code_hash, "data1"]
439437
return "unique_cell"
440438
when [CkbSync::Api.instance.stablepp_pool_code_hash, "type"]

config/settings.mainnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ omiga_inscription_info_code_hash: "0x5c33fc69bd72e895a63176147c6ab0bb5758d1c7a32
3232
omiga_inscription_code_hash: "0x7490970e6af9b9fe63fc19fc523a12b2ec69027e6ae484edffb97334f74e8c97"
3333

3434
# xudt
35-
xudt_code_hash: "0x50bd8d6680b8b9cf98b73f3c08faf8b2a21914311954118ad6609be6e78a1b95"
35+
xudt_data_hash: "0x50bd8d6680b8b9cf98b73f3c08faf8b2a21914311954118ad6609be6e78a1b95"
3636
unique_cell_code_hash: "0x2c8c11c985da60b0a330c61a85507416d6382c130ba67f0c47ab071e00aec628"
3737

3838
# xudt compatible

0 commit comments

Comments
 (0)