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

fix: skip serialization of continuation token if None #530

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion starknet-core/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ pub struct EventsPage {
/// Matching events
pub events: Vec<EmittedEvent>,
/// A pointer to the last element of the delivered page, use this token in a subsequent query to
/// obtain the next page
/// obtain the next page. If the value is `None`, don't add it to the response as clients might
/// use `contains_key` as a check for the last page.
#[serde(skip_serializing_if = "Option::is_none")]
pub continuation_token: Option<String>,
}

Expand Down
Loading