@@ -37,7 +37,7 @@ fn test_cells_search_mode_default_partitial() {
3737 // default with partitial args
3838 let script = ckb_types:: packed:: Script :: new_builder ( )
3939 . code_hash ( CODE_HASH . pack ( ) )
40- . hash_type ( ScriptHashType :: Type . into ( ) )
40+ . hash_type ( ScriptHashType :: Type )
4141 . args ( ARGS [ 0 ..2 ] . pack ( ) )
4242 . build ( ) ;
4343
@@ -60,7 +60,7 @@ fn test_cells_search_mode_prefix_partitial() {
6060 // prefix with partitial args
6161 let script = ckb_types:: packed:: Script :: new_builder ( )
6262 . code_hash ( CODE_HASH . pack ( ) )
63- . hash_type ( ScriptHashType :: Type . into ( ) )
63+ . hash_type ( ScriptHashType :: Type )
6464 . args ( ARGS [ 0 ..2 ] . pack ( ) )
6565 . build ( ) ;
6666
@@ -82,7 +82,7 @@ fn test_cells_search_mode_exact_partitial() {
8282 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
8383 let script = ckb_types:: packed:: Script :: new_builder ( )
8484 . code_hash ( CODE_HASH . pack ( ) )
85- . hash_type ( ScriptHashType :: Type . into ( ) )
85+ . hash_type ( ScriptHashType :: Type )
8686 . args ( ARGS [ 0 ..2 ] . pack ( ) )
8787 . build ( ) ;
8888 // exact with partitial args
@@ -104,7 +104,7 @@ fn test_cells_search_mode_exact() {
104104 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
105105 let script = ckb_types:: packed:: Script :: new_builder ( )
106106 . code_hash ( CODE_HASH . pack ( ) )
107- . hash_type ( ScriptHashType :: Type . into ( ) )
107+ . hash_type ( ScriptHashType :: Type )
108108 . args ( ARGS [ ..] . pack ( ) )
109109 . build ( ) ;
110110
@@ -127,7 +127,7 @@ fn test_get_transactions_search_mode_default() {
127127 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
128128 let script = ckb_types:: packed:: Script :: new_builder ( )
129129 . code_hash ( CODE_HASH . pack ( ) )
130- . hash_type ( ScriptHashType :: Type . into ( ) )
130+ . hash_type ( ScriptHashType :: Type )
131131 . args ( ARGS [ 0 ..2 ] . pack ( ) )
132132 . build ( ) ;
133133
@@ -150,7 +150,7 @@ fn test_get_transactions_search_mode_prefix_partial() {
150150 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
151151 let script = ckb_types:: packed:: Script :: new_builder ( )
152152 . code_hash ( CODE_HASH . pack ( ) )
153- . hash_type ( ScriptHashType :: Type . into ( ) )
153+ . hash_type ( ScriptHashType :: Type )
154154 . args ( ARGS [ 0 ..2 ] . pack ( ) )
155155 . build ( ) ;
156156
@@ -172,7 +172,7 @@ fn test_get_transactions_search_mode_exact_partitial() {
172172 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
173173 let script = ckb_types:: packed:: Script :: new_builder ( )
174174 . code_hash ( CODE_HASH . pack ( ) )
175- . hash_type ( ScriptHashType :: Type . into ( ) )
175+ . hash_type ( ScriptHashType :: Type )
176176 . args ( ARGS [ 0 ..2 ] . pack ( ) )
177177 . build ( ) ;
178178
@@ -195,7 +195,7 @@ fn test_get_transactions_search_mode_exact_full() {
195195 // exact search
196196 let script = ckb_types:: packed:: Script :: new_builder ( )
197197 . code_hash ( CODE_HASH . pack ( ) )
198- . hash_type ( ScriptHashType :: Type . into ( ) )
198+ . hash_type ( ScriptHashType :: Type )
199199 . args ( ARGS [ ..] . pack ( ) )
200200 . build ( ) ;
201201
@@ -217,7 +217,7 @@ fn test_get_cells_capacity_search_mode_default() {
217217 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
218218 let script = ckb_types:: packed:: Script :: new_builder ( )
219219 . code_hash ( CODE_HASH . pack ( ) )
220- . hash_type ( ScriptHashType :: Type . into ( ) )
220+ . hash_type ( ScriptHashType :: Type )
221221 . args ( ARGS [ 0 ..2 ] . pack ( ) )
222222 . build ( ) ;
223223
@@ -238,7 +238,7 @@ fn test_get_cells_capacity_search_mode_prefix_partial() {
238238 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
239239 let script = ckb_types:: packed:: Script :: new_builder ( )
240240 . code_hash ( CODE_HASH . pack ( ) )
241- . hash_type ( ScriptHashType :: Type . into ( ) )
241+ . hash_type ( ScriptHashType :: Type )
242242 . args ( ARGS [ 0 ..2 ] . pack ( ) )
243243 . build ( ) ;
244244
@@ -259,7 +259,7 @@ fn test_get_cells_capacity_search_mode_exact_partital() {
259259 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
260260 let script = ckb_types:: packed:: Script :: new_builder ( )
261261 . code_hash ( CODE_HASH . pack ( ) )
262- . hash_type ( ScriptHashType :: Type . into ( ) )
262+ . hash_type ( ScriptHashType :: Type )
263263 . args ( ARGS [ 0 ..2 ] . pack ( ) )
264264 . build ( ) ;
265265 // exact with partitial args
@@ -280,7 +280,7 @@ fn test_get_cells_capacity_search_mode_exact() {
280280 let block_range = Some ( ValueRangeOption :: new ( 0 , 1 ) ) ;
281281 let script = ckb_types:: packed:: Script :: new_builder ( )
282282 . code_hash ( CODE_HASH . pack ( ) )
283- . hash_type ( ScriptHashType :: Type . into ( ) )
283+ . hash_type ( ScriptHashType :: Type )
284284 . args ( ARGS [ ..] . pack ( ) )
285285 . build ( ) ;
286286
0 commit comments