Skip to content

Conversation

@neocybereth
Copy link
Contributor

No description provided.

@Fraccaman Fraccaman force-pushed the feat/add-transsaction-history-types branch from e7a3a6e to 66a3f6e Compare June 3, 2025 14:21
@neocybereth neocybereth requested review from Fraccaman and grarco June 13, 2025 08:08
"unjailValidator" => {
Some(TransactionKindDb::UnjailValidator)
}
_ => None, // Skip invalid types
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to return an error maybe? To avoid typos going unnoticed

#[validate(length(min = 1, max = 10))]
pub addresses: Vec<String>,
#[validate(length(min = 1, max = 20))]
pub transaction_types: Option<HashSet<String>>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also just have an empty set without the need for an Option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants