Skip to content

Conversation

@pxrl
Copy link
Contributor

@pxrl pxrl commented Oct 13, 2023

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.

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.
Copy link
Member

@nicholaspai nicholaspai left a 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?

@pxrl
Copy link
Contributor Author

pxrl commented Oct 13, 2023

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.

@pxrl pxrl merged commit 6999e2c into master Oct 18, 2023
@pxrl pxrl deleted the pxrl/depositUtils branch October 18, 2023 12:53
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