-
Notifications
You must be signed in to change notification settings - Fork 75
refactor: Simplify Deposit test + helpers #363
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
Conversation
Simplify deposit generation by converting getDepositParams() to accept an object, rather than a fixed list of parameters. This makes it cleaner for the caller to opt-out of supplying various inputs. This was prompted by a need to update the deposit() and getDepositParams() utilities such that the caller can supply a custom message.
nicholaspai
left a comment
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.
LGTM thanks for doing this. We had a TODO in the recent clean up to copy these utilities to the relayer repo. Should we do it now?
It's not clear to me whether it's better to copy, or just invest effort in fixing the utils here. If we copied then it'd probably have to go to sdk-v2, since we also depend on the functionality there. I'm just not a big fan of having duplicates of these utilities. |
This reverts commit 357ef7d.
Simplify deposit generation by converting getDepositParams() to accept an object, rather than a fixed list of parameters. This makes it cleaner for the caller to opt-out of supplying various inputs.
This was prompted by a need to update the deposit() and getDepositParams() utilities such that the caller can supply a custom message.