Skip to content

sui_v1.76.0_1783401239_ci

@wlmyng wlmyng tagged this 07 Jul 02:57
## Description 

```
impl TxBoundsCursor for CTransaction {
    fn tx_sequence_number(&self) -> u64 {
        CursorToken::decode(self)
            .expect("cursor already validated as ByteCursor")
            .position
    }
}
```

The expect from above pops up when we receive a legacy cursor format,
which is valid base64 but doesn't decode into a `CursorToken`. Before
this, we should validate in `fn paginate` whether the cursor is indeed
an encoded `CursorToken`.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] Indexing Framework:
Assets 2
Loading