Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC] get events reverse order has_next page error #3269

Closed
jolestar opened this issue Feb 5, 2025 · 0 comments
Closed

[RPC] get events reverse order has_next page error #3269

jolestar opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels
area:rpc RPC relative issues
Milestone

Comments

@jolestar
Copy link
Contributor

jolestar commented Feb 5, 2025

Get events reverse order has_next_page is incorrect

rooch event get-events-by-event-handle -t 0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3::tweet_fetcher::TweetBatchProcessEvent --limit 1 -d true
{
  "data": [
    {
      "event_id": {
        "event_handle_id": "0x688002b0b7d4184ecc131a3bd806d0f1195a21fae8659554f48f9ee0b8d75a05",
        "event_seq": "4483"
      },
      "event_type": "0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3::tweet_fetcher::TweetBatchProcessEvent",
      "event_data": "0x01133138383636303336383236323136313635303701118f844ad972d331000bab2b44b911b79b7bb815bcfd8bb694cfb512bfb4025203",
      "event_index": "2",
      "decoded_event_data": {
        "abilities": 7,
        "type": "0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3::tweet_fetcher::TweetBatchProcessEvent",
        "value": {
          "request_id": "0x118f844ad972d331000bab2b44b911b79b7bb815bcfd8bb694cfb512bfb40252",
          "status": 3,
          "tweet_ids": {
            "abilities": 7,
            "type": "0x1::string::String",
            "field": [
              "bytes"
            ],
            "value": [
              [
                "0x0000000000000000000000000031383836363033363832363231363136353037"
              ]
            ]
          }
        }
      }
    }
  ],
  "next_cursor": "4483",
  "has_next_page": false
}

has_next_page should be true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rpc RPC relative issues
Projects
Status: Done
Development

No branches or pull requests

2 participants