Skip to content

Commit e9cfae4

Browse files
authored
Merge pull request #2836 from nervosnetwork/develop
Deploy to testnet
2 parents edc979a + bba42a2 commit e9cfae4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/interactions/addresses/ckb_transactions.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)