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

Only emit shard events on change #34

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Conversation

Haider-Ali-DS
Copy link
Contributor

@Haider-Ali-DS Haider-Ali-DS commented Dec 23, 2024

  • Only emit events if setShard or revokeShard do any changes in storage
  • Add unit_test for changes.

add test for shard events
@Haider-Ali-DS Haider-Ali-DS force-pushed the only-emit-shard-events-on-change branch from 3f26445 to fa203a3 Compare December 23, 2024 16:27
@Haider-Ali-DS Haider-Ali-DS requested a review from Lohann December 23, 2024 20:20
@Haider-Ali-DS Haider-Ali-DS marked this pull request as ready for review December 23, 2024 20:20
@@ -243,6 +243,79 @@ contract GatewayBase is Test {
}
}

function test_shardEvents() external {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Neat, thanks for writting this test !

@Lohann Lohann merged commit 49bde82 into main Dec 23, 2024
1 check passed
@Lohann Lohann deleted the only-emit-shard-events-on-change branch December 23, 2024 23:06
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.

2 participants