Skip to content

Oderby to json is error #11

@lajiww

Description

@lajiww

version : 1.44.2

`2024-04-24 19:15:13.124 INFO 48914 --- [ main] com.radiance.tonclient.TONContext : => 1 net.query_collection {"collection":"blocks","result":"id workchain_id shard seq_no","order":[{"path":"seq_no","direction":"DESC"}],"limit":1}

2024-04-24 19:15:14.670 INFO 48914 --- [ Thread-10] com.radiance.tonclient.TONContext : <= 1 {"result":[{"id":"8712979ca122a06d77474b1256d4b9bf104ac9590c2182cd7ca06dfdd1a53f9b","workchain_id":0,"shard":"7000000000000000","seq_no":7039626}]} type=0 finished=true

2024-04-24 19:15:14.677 INFO 48914 --- [ main] com.radiance.tonclient.TONContext : => 2 net.query_collection {"collection":"blocks","result":"id workchain_id shard seq_no","order":[{"path":"seq_no","direction":1}],"limit":1}

2024-04-24 19:15:14.678 INFO 48914 --- [ Thread-11] com.radiance.tonclient.TONContext : <= 2 {"code":23,"message":"Invalid parameters: expected value at line 1 column 102\nparams: {"collection":"blocks","result":"id workchain_id shard seq_no","order":[{"path":"seq_no","direction":1}],"limit":1}","data":{"core_version":"1.44.2"}} type=1 finished=true`

when call this code

Object[] completableFuture1 = net.queryCollection( "blocks", null, "id workchain_id shard seq_no", new Net.OrderBy[]{new Net.OrderBy("seq_no", Net.SortDirection.DESC)}, 1).get();

OrderBy class to json should be
"order":[{"path":"seq_no","direction":"DESC"}]
not
"order":[{"path":"seq_no","direction":1}],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions