Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Dec 13, 2024
2 parents 2ac4ca9 + d1f9b93 commit 414cc8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def process_cell_dependencies(cell_deps, lock_scripts, type_scripts, out_points_
contract_cell_id: cell_dep.contract_cell_id,
dep_type: cell_dep.dep_type,
}
next if Contract.joins(:cell_deps_out_points).where(cell_deps_out_points: { contract_cell_id: cell_dep.contract_cell_id }).exists?

case cell_dep.dep_type
when "code"
Expand Down
5 changes: 5 additions & 0 deletions lib/tasks/migration/analyze_contract_from_start_block.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace :migration do

cell_deps.each do |cell_dep|
cell_deps_attrs << { contract_analyzed: true, ckb_transaction_id: cell_dep.ckb_transaction_id, contract_cell_id: cell_dep.contract_cell_id, dep_type: cell_dep.dep_type }
next if Contract.joins(:cell_deps_out_points).where(cell_deps_out_points: { contract_cell_id: cell_dep.contract_cell_id }).exists?

case cell_dep.dep_type
when "code"
Expand Down Expand Up @@ -86,6 +87,10 @@ namespace :migration do
{
type_hash: cell_output.type_script&.script_hash,
data_hash: cell_output.data_hash,
<<<<<<< HEAD
=======

>>>>>>> issue-794-7
deployed_cell_output_id: cell_output.id,
deployed_args: cell_output.type_script&.args,
}
Expand Down

0 comments on commit 414cc8c

Please sign in to comment.