File tree Expand file tree Collapse file tree 3 files changed +0
-20
lines changed
Expand file tree Collapse file tree 3 files changed +0
-20
lines changed Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 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 ] )
You can’t perform that action at this time.
0 commit comments