File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/interactions/addresses Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,8 @@ def execute
1212 is_bitcoin = BitcoinUtils . valid_address? ( key )
1313
1414 if is_bitcoin
15- ckb_transaction_ids = BtcAccountBook . includes ( :bitcoin_address ) .
15+ account_books = BtcAccountBook . includes ( :bitcoin_address ) .
1616 where ( bitcoin_address : { address_hash : key } ) .
17- pluck ( :ckb_address_id ) .
1817 order ( account_books_ordering ) .
1918 page ( page ) . per ( page_size )
2019 else
@@ -26,10 +25,10 @@ def execute
2625 order ( account_books_ordering ) .
2726 select ( :ckb_transaction_id ) .
2827 page ( page ) . per ( page_size )
29-
30- ckb_transaction_ids = account_books . map ( &:ckb_transaction_id )
3128 end
3229
30+ ckb_transaction_ids = account_books . map ( &:ckb_transaction_id )
31+
3332 includes = { :cell_inputs => [ :previous_cell_output ] , :outputs => { } , :bitcoin_annotation => [ ] }
3433 includes [ :bitcoin_transfers ] = { } if is_bitcoin
3534
You can’t perform that action at this time.
0 commit comments