Fix/cross chain hash message 293 - #345
Merged
Dev-Zully merged 4 commits intoAug 26, 2026
Merged
Conversation
|
@rabsqueen Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a critical compilation error in
cross_chain_verifiercaused by two privatehash_messageimplementations with effectively identical logic.Both implementations generated the cross-chain message hash using the
CROSS_CHAIN_MESSAGE_V1domain prefix and the same message fields, resulting in a duplicate function definition within the contract.What Changed
🐛 Removed Duplicate Implementation
hash_messagefunction.Bytes::from_slice.CROSS_CHAIN_MESSAGE_V1domain separator.🔐 Hashing Behaviour Preserved
The retained implementation continues to construct the message hash using the established cross-chain domain:
No changes were made to the intended hashing scheme or message format.
Before
The duplicate private function caused the contract to fail compilation.
After
A single authoritative implementation now handles cross-chain message hashing.
Validation
Verified that:
hash_messageimplementation remains.Bytes::from_slice.CROSS_CHAIN_MESSAGE_V1remains unchanged.Acceptance Criteria
hash_messageimplementations.Bytes::from_sliceimplementation.CROSS_CHAIN_MESSAGE_V1.Result
cross_chain_verifiernow contains a single, consistenthash_messageimplementation, eliminating the critical build failure while preserving the established cross-chain message hashing scheme.Closes #292
Closes #293
Closes #295
Closes #294