From ef83baad496603625f34dfdcebf44f99dcfb7d46 Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Thu, 24 Oct 2024 12:43:34 +0900 Subject: [PATCH] feat: suuport data2 hash_type Signed-off-by: Miles Zhang --- app/jobs/import_transaction_job.rb | 2 +- app/models/deployed_cell.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/import_transaction_job.rb b/app/jobs/import_transaction_job.rb index 0470de72c..3eac63c4e 100644 --- a/app/jobs/import_transaction_job.rb +++ b/app/jobs/import_transaction_job.rb @@ -186,7 +186,7 @@ def process_deployed_cell(lock_script_or_type_script) dep = case lock_script_or_type_script.hash_type - when "data", "data1" + when "data", "data1", "data2" by_data_hash[lock_script_or_type_script.code_hash] when "type" by_type_hash[lock_script_or_type_script.code_hash] diff --git a/app/models/deployed_cell.rb b/app/models/deployed_cell.rb index 1ceefa11f..3cdf5fec5 100644 --- a/app/models/deployed_cell.rb +++ b/app/models/deployed_cell.rb @@ -138,7 +138,7 @@ def self.create_initial_data_for_ckb_transaction(ckb_transaction, cell_deps) scripts.each do |lock_script_or_type_script| dep = case lock_script_or_type_script.hash_type - when "data", "data1" + when "data", "data1", "data2" by_data_hash[lock_script_or_type_script.code_hash] when "type" by_type_hash[lock_script_or_type_script.code_hash]