Skip to content

Conversation

@rstout
Copy link
Contributor

@rstout rstout commented Nov 21, 2025

40 test scenarios, tests edge cases

@rstout rstout force-pushed the cctpv2-observer-integration-tests branch 3 times, most recently from 219680a to 5b49a33 Compare November 21, 2025 00:36
40 test scenarios, tests edge cases
@rstout rstout force-pushed the cctpv2-observer-integration-tests branch from 5b49a33 to 14cf277 Compare November 21, 2025 01:01
@rstout rstout marked this pull request as ready for review November 21, 2025 01:38
@rstout rstout requested a review from a team as a code owner November 21, 2025 01:38
mateusz-sekara
mateusz-sekara previously approved these changes Nov 21, 2025

// Helper function to create a complete CCTPv2Message with a specific unique ID
// The uniqueID is used to make messages distinct from each other
func createCircleMessageWithID(uniqueID byte, status string) CCTPv2Message {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit, If you don't rely on asserting uniqueID anywhere in the code, I guess you can make it randomized for simplicity. We have helpers for that in code, i.e., RandomBytes32, RandomAddress, RandomHash

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The uniqueID determines the DepositHash of these CCTPv2 messages, they are indirectly used. I think it's best to keep things deterministic

@github-actions
Copy link

Metric cctpv2-observer-integration-tests main
Coverage 69.8% 69.4%

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.

3 participants