@@ -85,7 +85,7 @@ def query
8585 end
8686
8787 includes = { bitcoin_annotation : [ ] ,
88- cell_outputs : [ :address , :deployed_contract , :type_script , :bitcoin_vout , :lock_script ] ,
88+ cell_outputs : [ :address , :deployed_contract , :type_script , :bitcoin_vout , :lock_script , :consumed_by ] ,
8989 cell_inputs : [ :block , previous_cell_output : [ :address , :deployed_contract , :type_script , :bitcoin_vout , :lock_script ] ] }
9090
9191 ckb_transactions = ckb_transactions . includes ( includes ) . select ( :id , :tx_hash , :block_id , :tags ,
@@ -147,7 +147,7 @@ def find_transaction
147147 witnesses : [ ] ,
148148 block : [ :epoch_statistic ] ,
149149 cell_dependencies : [ :cell_output , :contract ] ,
150- cell_outputs : [ :address , :deployed_contract , :type_script , :bitcoin_vout , :lock_script ] ,
150+ cell_outputs : [ :address , :deployed_contract , :type_script , :bitcoin_vout , :lock_script , :consumed_by ] ,
151151 cell_inputs : [ :block , previous_cell_output : [ :address , :deployed_contract , :type_script , :bitcoin_vout , :lock_script ] ] }
152152
153153 @ckb_transaction = CkbTransaction . includes ( includes ) . where ( tx_hash : params [ :id ] ) . first
0 commit comments