Skip to content

Commit

Permalink
fix: query cell_output by hex index (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz authored Nov 16, 2023
1 parent ce3c5fb commit f154543
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/deployed_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def self.create_initial_data_for_ckb_transaction(ckb_transaction, cell_deps)
parse_code_dep =
->(cell_dep) do
# this cell output is the contract cell, i.e. one of deployed cells of the contract
cell_output = CellOutput.find_by tx_hash: cell_dep["out_point"]["tx_hash"],
cell_index: cell_dep["out_point"]["index"]
cell_output = CellOutput.find_by_pointer cell_dep["out_point"]["tx_hash"], cell_dep["out_point"]["index"]

attr = {
contract_cell_id: cell_output.id,
Expand Down

0 comments on commit f154543

Please sign in to comment.