-
Notifications
You must be signed in to change notification settings - Fork 34
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
Public HashLeaf Function #739
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels like an easy place to miss when future version are added, is it possible to move this into factory/onramp, or at least add a comment there to also update the code here
// MakeLeafHasher is a factory function to construct the onramp implementing the HashLeaf function for a given version. | ||
func MakeLeafHasher(ver Version, cl bind.ContractBackend, sourceChainSelector uint64, destChainSelector uint64, onRampId common.Address, ctx hashlib.Ctx[[32]byte]) (LeafHasher, error) { | ||
switch ver { | ||
case V1_0_0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove v1.0, it's been killed
…public factory function.
Motivation
Reusing the HashLeaf function in a separate repository.
It also allows re-using the HashLeaf function in the manual-execution app.
Solution
A factory function to provide access to the internal HashLeaf functions.