From faa0ed3ee9d525f09b43221337e3714af843c1ab Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Thu, 10 Oct 2024 09:33:09 +0800 Subject: [PATCH] feat: add RUSD support in mainnet (#2222) Signed-off-by: Miles Zhang --- app/models/ckb_sync/api.rb | 6 +----- config/settings.mainnet.yml | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/models/ckb_sync/api.rb b/app/models/ckb_sync/api.rb index 43e8844cd..0453976ce 100644 --- a/app/models/ckb_sync/api.rb +++ b/app/models/ckb_sync/api.rb @@ -104,11 +104,7 @@ def xudt_code_hash end def xudt_compatible_code_hashes - if mode == CKB::MODE::MAINNET - [Settings.xudt_compatible_code_hash] - else - [Settings.xudt_compatible_code_hash, Settings.xudt_compatible2_code_hash] - end + [Settings.xudt_compatible_code_hash, Settings.xudt_compatible2_code_hash] end def unique_cell_code_hash diff --git a/config/settings.mainnet.yml b/config/settings.mainnet.yml index 1e47acde2..5f44accc2 100644 --- a/config/settings.mainnet.yml +++ b/config/settings.mainnet.yml @@ -36,6 +36,7 @@ xudt_code_hash: "0x50bd8d6680b8b9cf98b73f3c08faf8b2a21914311954118ad6609be6e78a1 # xudt compatible xudt_compatible_code_hash: "0x092c2c4a26ea475a8e860c29cf00502103add677705e2ccd8d6fe5af3caa5ae3" +xudt_compatible2_code_hash: "0x26a33e0815888a4a0614a0b7d09fa951e0993ff21e55905510104a0b1312032b" unique_cell_code_hash: "0x2c8c11c985da60b0a330c61a85507416d6382c130ba67f0c47ab071e00aec628"