Skip to content

Commit a935a7c

Browse files
committed
feat: remove RPC get_cells_by_lock_hash
BREAKING CHANGE: remove RPC get_cells_by_lock_hash
1 parent 8ff957e commit a935a7c

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

lib/ckb/api.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,6 @@ def get_tip_block_number
123123
Utils.to_int(rpc.get_tip_block_number)
124124
end
125125

126-
# @param hash [String] 0x...
127-
# @param from [String | Integer]
128-
# @param to [String | Integer]
129-
#
130-
# @return [CKB::Types::CellOutputWithOutPoint[]]
131-
def get_cells_by_lock_hash(hash, from, to)
132-
outputs = rpc.get_cells_by_lock_hash(hash, from, to)
133-
outputs.map { |output| Types::CellOutputWithOutPoint.from_h(output) }
134-
end
135-
136126
# @param tx_hash [String]
137127
#
138128
# @return [CKB::Types::TransactionWithStatus]

spec/ckb/api_spec.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@
115115
expect(result > 0).to be true
116116
end
117117

118-
it "get cells by lock hash" do
119-
result = api.get_cells_by_lock_hash(lock_hash, 0, 100)
120-
expect(result).not_to be nil
121-
end
122-
123118
it "get transaction" do
124119
tx = api.genesis_block.transactions.first
125120
result = api.get_transaction(tx.hash)

spec/ckb/rpc_spec.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@
113113
expect(result.hex > 0).to be true
114114
end
115115

116-
it "get cells by lock hash" do
117-
result = rpc.get_cells_by_lock_hash(lock_hash, 0, 100)
118-
expect(result).not_to be nil
119-
end
120-
121116
it "get transaction" do
122117
tx = rpc.genesis_block[:transactions].first
123118
result = rpc.get_transaction(tx[:hash])

0 commit comments

Comments
 (0)