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(fds): Avoid constraint violation for fds-in-fds #5092

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

leoyvens
Copy link
Collaborator

No description provided.

if creation_block != &Some(block) {
// Nested offchain data sources might not pass this check, as their `creation_block`
// will be their parent's `creation_block`, not necessarily `block`.
if causality_region == &CausalityRegion::ONCHAIN && creation_block != &Some(block) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should a test be added to prevent regression?

Copy link
Contributor

@mangas mangas left a comment

Choose a reason for hiding this comment

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

As per my comment, I think we should add a test so perhaps you can create an issue to come back to it when you can

@leoyvens
Copy link
Collaborator Author

leoyvens commented Jan 4, 2024

Thanks, I've opened an issue #5105

@leoyvens leoyvens merged commit ea246be into master Jan 4, 2024
7 checks passed
@mangas mangas deleted the leo/fds-in-fds-fix-constraint-violation branch January 5, 2024 13:44
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.

None yet

2 participants