Skip to content

Commit

Permalink
Merge branch 'refactor-contract' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
zmcNotafraid committed Nov 14, 2024
2 parents 6f196cb + 3dd22c2 commit b5f5f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/cell_dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def self.parse_cell_dpes_from_ckb_transaction(ckb_transaction, cell_deps)
out_points_count = binary_data[0, 4].unpack("L<")
# iterate over the out point list and append actual referred contract cells to cell dependencies_attrs
0.upto(out_points_count[0] - 1) do |i|
tx_hash, cell_index = binary_data[4 + i * 36, 36].unpack("H64L<")
part_tx_hash, cell_index = binary_data[4 + i * 36, 36].unpack("H64L<")
tx_hash = "0x#{part_tx_hash}"
cell_output = CellOutput.find_by_pointer tx_hash, cell_index
cell_deps_out_points_attrs << {
tx_hash:,
Expand Down

0 comments on commit b5f5f9d

Please sign in to comment.